/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String args
[]) { for (int i = input.length() - 1; i >= 0; i--) {
if (c != ' ') {
result = c + result;
} else {
System.
out.
print(result
+ " "); result="";
}
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nIGFyZ3NbXSkgewogICAgU3RyaW5nIGlucHV0ID0gIkkgYW0gdGVzdCI7CiAgICBTdHJpbmcgcmVzdWx0ID0gIiI7CiAgICBmb3IgKGludCBpID0gaW5wdXQubGVuZ3RoKCkgLSAxOyBpID49IDA7IGktLSkgewogICAgICAgIENoYXJhY3RlciBjID0gaW5wdXQuY2hhckF0KGkpOwogICAgICAgIGlmIChjICE9ICcgJykgewogICAgICAgICAgICByZXN1bHQgPSBjICsgcmVzdWx0OwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQocmVzdWx0ICsgIiAiKTsKICAgICAgICAgICAgcmVzdWx0PSIiOwogICAgICAgIH0KICAgIH0KICAgIFN5c3RlbS5vdXQucHJpbnRsbihyZXN1bHQpOwp9Cn0=