#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: wangyiyang
	Language: C++
	Result: Accepted
	Time:21 ms
	Memory:2072 kb
****************************************************************/