#include<bits/stdc++.h>
using namespace std;

int main(){
    char word[1000];
    cin >> word;
    string ans = "Yes";
    for(int i=0;i<strlen(word);i++){
        if(i%2){
            if(word[i]<'A' || 'Z'<word[i]) ans = "No";
        }else{
            if(word[i]<'a' || 'z'<word[i]) ans = "No";
        }
    }
    cout << ans << endl;
    return 0;
}
#include "bits/stdc++.h"
using namespace std;

int main() {
	long long int n;
	cin >> n;

	long long int x = 0;
	for (long long int i = 1; i <= n; i++) {
		if (x + i >= n + 1) {
			if (x + i == n + 1) {
				x = i;
			}
			else {
				x = i - 1;
			}
			break;
		}
		x += i;
	}
	cout << (n - x) + 1 << endl;
}