#include <iostream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
#define ll long long
#define sz(x) int(size(x))
void omar()
{
ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
#endif
}
int main()
{
omar();
//////////////////////////////////////////////////////////////////////////////////////////
string s;
while(cin>>s)
{
reverse(s.begin(), s.end());
cout << s<<" ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojZGVmaW5lIGxsIGxvbmcgbG9uZwojZGVmaW5lIHN6KHgpIGludChzaXplKHgpKQp2b2lkIG9tYXIoKQp7CiAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSksIGNpbi50aWUobnVsbHB0ciksIGNvdXQudGllKG51bGxwdHIpOwojaWZuZGVmIE9OTElORV9KVURHRQogIGZyZW9wZW4oImlucHV0LnR4dCIsICJyIiwgc3RkaW4pLCBmcmVvcGVuKCJvdXRwdXQudHh0IiwgInciLCBzdGRvdXQpOwojZW5kaWYKfQoKaW50IG1haW4oKQp7CiAgb21hcigpOwogIC8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLwogCiAgc3RyaW5nIHM7CiAgd2hpbGUoY2luPj5zKQogewogICByZXZlcnNlKHMuYmVnaW4oKSwgcy5lbmQoKSk7CiAgIGNvdXQgPDwgczw8IiAiOwogfSAKCiAgcmV0dXJuIDA7Cn0KCg==