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);
}
}
}
package pl.codegym.task.task04.task0432;
/*
Dobrego nigdy zbyt wiele
*/
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);
}
}
}