#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int,int>

string s;
bool ch1,ch2;

int main(){
	cin>>s;
	ch1=true;
    ch2=true;
	for(int i = 0;i < s.size();i+=2){
		if(s[i] >='a' && s[i] <= 'z') continue;
		else{
			ch1=false;
			break;
		}
	}
	for(int i = 1;i < s.size();i+=2){
		if(s[i] >= 'A'&& s[i] <= 'Z') continue;
		else{
			ch2=false;
			break;
		}
	}
	if(ch1 & ch2) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n;
    cin>>n;
    cout<<n-1<<endl;
}
