/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
Scanner in
= new Scanner
(System.
in); // int i=0;
st.setDecimalSeparator('.');
while(in.hasNextLong()){
b=in.nextLine();
if(b.contains(" ")){
s=r + " " + s;
}
}else{
s = b +" " + s;
}
// i++;
//System.out.println("i= "+i);
}
if (s.contains("\n")){
s.replace("\n","ups");
}
//if(r.contains("\n")){
// System.out.println(r);
// }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRleHQuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoKU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJCVN0cmluZyBzID0iIjsKCQkvLwlpbnQgaT0wOwoJCQlTdHJpbmcgYjsKCQkJRGVjaW1hbEZvcm1hdFN5bWJvbHMgc3QgPSBuZXcgRGVjaW1hbEZvcm1hdFN5bWJvbHMoKTsKCQkJc3Quc2V0RGVjaW1hbFNlcGFyYXRvcignLicpOwoJCQlEZWNpbWFsRm9ybWF0IGYgPSBuZXcgRGVjaW1hbEZvcm1hdCgiIywjIyMjMC4wMDAwIixzdCk7CgkJCXdoaWxlKGluLmhhc05leHRMb25nKCkpewoJCQkJCgkJCQkJCgkJCQkKCQkJC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