#include<iostream>
#include<ctype.h>
using namespace std;
int main(void)

{
    char S,T;
    cin >> S;
    cin >> T;

    if(S == 'Y')
    {
        T = toupper(T);
    }
    cout << T << endl;
    return 0;

}

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main () {
	char S, T;
	cin >> S >> T;

	if (S == 'Y') {
		T = T - 0x20;
		cout << T << endl;
		return 0;
	}
	if (S == 'N') {
		cout << T << endl;
		return 0;
	}
}
