public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> spicok = new ArrayList<String>(); int max = Integer.MAX_VALUE; for (int i = 0; i < max; i++) { String s = reader.readLine(); if (s.equals("end")) {break;} else spicok.add(s);} for (int i = 0; i < max; i++) System.out.println(spicok.get(i)); } }