#include <bits/stdc++.h>

using namespace std;

int n, t[50];

int main(){
	string ch;
	cin >> ch;
	for(int i = 1;i < ch.size();i++)cout << ch[i];
	cout << ch[0];
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
if(x<0){cout<<'0';}
else if(x>0){cout<<x;}
else if(x==0){cout<<'0';}
return 0;}
