#include<bits/stdc++.h> 
#define int long long
#define x first
#define y second
#define mp make_pair
#define pb push_back
#define endl "\n"
using namespace std;

const int max_n = 1e5+10;
const int inf = 1e18;

signed main(){
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    string s;cin>>s;
    s.pb(s[0]);
    for(int i=1;i<s.size();i++){
        cout<<s[i];
    }
    cout<<endl;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int N;
    cin>>N;
    cout<< (N-1) <<endl;
	return 0;
 }
