#include <bits/stdc++.h>

using namespace std;

int main(){
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif

    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string s;
	cin>>s;
  	char first, second, third;
  	first = s[0];
  	second = s[1];
    third = s[2];
  	
  	s[0] = second;
  	s[1] = third;
  	s[2] = first;
  	cout << s << "\n";
    
    return 0;
}
#include<bits/stdc++.h>

using namespace std;

int main(){
	string s;
	cin >> s;
	
	for(int i = 0; i < s.length(); i++){
		if(i % 2 == 0){
			if(isupper(s[i])){
				cout << "No" << endl;
				return 0;
			}
		}
		if(i % 2 == 1){
			if(islower(s[i])){
				cout << "No" << endl;
				return 0;
			}
		}
	}
	printf("Yes\n");
	
	return 0;
	
}