#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
getline(cin,str);
int l=str.length();
if(l<4)
cout << "False!" << endl;
else{
string s1;
s1=str[l-1];
s1+=str[l-2];
for(int i=2; i<l-2; i++)
s1+=str[i];
s1+=str[1];
s1+=str[0];
cout<< s1 << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CiAgICBzdHJpbmcgc3RyOwogICAgZ2V0bGluZShjaW4sc3RyKTsKICAgIGludCBsPXN0ci5sZW5ndGgoKTsKICAgIGlmKGw8NCkKICAgICAgICBjb3V0IDw8ICJGYWxzZSEiIDw8IGVuZGw7CiAgICBlbHNlewogICAgICAgIHN0cmluZyBzMTsKICAgICAgICBzMT1zdHJbbC0xXTsKICAgICAgICBzMSs9c3RyW2wtMl07CiAgICAgICAgZm9yKGludCBpPTI7IGk8bC0yOyBpKyspCiAgICAgICAgICAgIHMxKz1zdHJbaV07CiAgICAgICAgczErPXN0clsxXTsKICAgICAgICBzMSs9c3RyWzBdOwogICAgICAgIGNvdXQ8PCBzMSA8PCBlbmRsOwogICAgfQogICAgcmV0dXJuIDA7CiAgICB9Cg==