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