import java.io.*;
import java.util.Vector;
public class PrintMiddles {
  
  public static void main(String[] args) throws IOException {
    BufferedReader br=
      new BufferedReader(new InputStreamReader(System.in));
    String stopper= "stop NOW!";
    Vector myList= new Vector();
    
    for (String input= br.readLine();
         !input.equals(stopper); input= br.readLine()) {
      myList.add(input);
    }
    
    while (myList.size() > 0) {
      System.out.println(myList.remove(myList.size()/2));
    }
  }
}