#include<bits/stdc++.h>
using namespace std;
int main(){
int x,l,k,j;
cin>>x;
l=x%10;
k=x/10%10;
j=l*10+k;
cout<<j;
}
/**************************************************************
Problem: 1707
User: tonghuawei
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/