using System;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
string word;
List<string> input = new List<string>();
do
{
word = Console.ReadLine();
if (!string.IsNullOrWhiteSpace(word))
{
input.Add(word);
}
}
while(!string.IsNullOrWhiteSpace(word));
for(int i = 0; i < input.Count; i++){
Console.WriteLine(input[i]);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCnB1YmxpYyBjbGFzcyBUZXN0CiAgICB7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJc3RyaW5nIHdvcmQ7CgkJTGlzdDxzdHJpbmc+IGlucHV0ID0gbmV3IExpc3Q8c3RyaW5nPigpOwoJCWRvCgkJewoJCQl3b3JkID0gQ29uc29sZS5SZWFkTGluZSgpOwoJCQlpZiAoIXN0cmluZy5Jc051bGxPcldoaXRlU3BhY2Uod29yZCkpCgkJCXsKCQkJCWlucHV0LkFkZCh3b3JkKTsKCQkJfQoJCX0KCQl3aGlsZSghc3RyaW5nLklzTnVsbE9yV2hpdGVTcGFjZSh3b3JkKSk7CgkJCgkJZm9yKGludCBpID0gMDsgaSA8IGlucHV0LkNvdW50OyBpKyspewoJCQlDb25zb2xlLldyaXRlTGluZShpbnB1dFtpXSk7CgkJfQoJfQp9