#include<bits/stdc++.h> using namespace std; int a; int main(){ cin>>a; cout<<a%10<<a/10%10<<a/100%10<<a/1000%10<<a/10000; return 0; }