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