import java.io.*;
/**
* 键盘录入,打印在控制台上
* @author Administrator
*
*/
public class KeyboardDemo {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
String str =null;
try {
while((str = in.readLine())!=null){
if(str.equals("over")){
break;
}
out.write(str);
out.newLine();
out.flush();
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
try {
if(in!=null)
in.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
if(out!=null)
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}