#include <iostream>
#include <math.h>
using namespace std;

int main()
{
char a , b ,c ;
cin >>a >> b >>c;
cout<< b << c << a;

    return 0;
}

#include <iostream>
#include <string>
#include <vector>
#include <utility>
using ll=long long;
using namespace std;

int main(){
    string S;
    cin>>S;
    int slen=S.size();
    int big;
    int ans=1;
    for(int i=0;i<slen;i++){
        if(S[i] >= 'a'){
            big=0;
        }else{
            big=1;
        }
        if(i%2 != big){
            ans=0;
        }
    }
    if(ans){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }

    return 0;
}