#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	cout<<n/100+n/10%10*10+n%10*100;
}

/**************************************************************
	Problem: 1028
	User: zhouhongyi
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/