import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String text = reader.readLine(); int N = Integer.parseInt(reader.readLine()); int count = 0; boolean stop = false; while(!stop){ System.out.println(text); count++; stop = count == (N); } } }