#include<bits/stdc++.h>
using namespace std;
int main(){
	int t,m,a,b;
	cin>>m;
	a=m%10;
	b=m/10;
	t=a*10+b;
	cout<<t; 
	
}

/**************************************************************
	Problem: 1707
	User: zhengzihao3
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/