#include<iostream> #include<cstdio> using namespace std; int main() { int a,gw,sy; cin>>a; gw=a%10; sy=a/10; cout<<gw<<sy<<endl; return 0; }