class str {
    public static void main(String[] args)
    {
        int n=Integer.parseInt(args[0]); // String given in commandline taken as input

        String s=args[1];
        for(int i=0;i<n;i++){
            System.out.println(s); // String is printed
    
        }
    }
}
