#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>

#define endl '\n'
#define ull unsigned long long
#define ll long long
#define ul unsigned long
#define ld long double
#define PI 3.14159265359

using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	int t = 1;
	// cin >> t;
	while (t--) {
		char s, t;
		cin >> s >> t;
		if (s == 'Y' && t >= 'a' && t <= 'z')
			t -= 32;
		cout << t << endl;
	}
}
#include <iostream>
using namespace std;
int main() {
    char x,y;
    cin>>x>>y;
    if(x=='Y'){
        y=toupper(y);
    }
    else{
       y=tolower(y); 
    }
   cout<<y<<endl;
    return 0;
}
