#include<bits/stdc++.h>
using namespace std;
int main(){
int x,s,g,h;
cin>>x;
g=x%10;
h=x/10;
s=g*10+h;
cout<<s;
}
/**************************************************************
Problem: 1606
User: huanghengyi
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/