import java.io.*;
public class InputStreamReaderTest{
 public static void main(String[] args) throws IOException{
  
  //从控制台输入并将输入的值传递给BufferedReader
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  //当输入over时候,程序退出
  while(true){
   String str = br.readLine();
   if(str.equals("over"))
    break; 
   System.out.println(str); 
  }
 }
}
//要明白这个文句的意思: new BufferedReader(new InputStreamReader(System.in));