package com.codegym.task.task07.task0722;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

/*
The end

*/

public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        ArrayList<String>list=new ArrayList<>();

        //write your code here
        while (true)
        {
            String s= reader.readLine();
            if (s.equals("end"))
                break;
            list.add(s);

        }
        for (String S:list
             ) {
            System.out.println(S);

        }
    }
}