#include<bits/stdc++.h> using namespace std; int main() { int n,g,s; cin>>n; g=n%10; s=n/10%10; cout<<g<<s; return 0; }