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

int main(void)
{
    char S, T;

    cin >> S >> T;
    
    if(S =='Y') {
        T = toupper(T);
    }
    else {
    }

    
    
    cout << T << endl;
    return 0;



}


/* https://codeforces.com/contest/1360/problem/H */
#include<bits/stdc++.h>

using namespace std;
using ll = long long;
using vs = vector<string>;
using vi = vector<int>;
using vl = vector<ll>;
using vb = vector<bool>;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using vpi = vector<pair<int, int>>;
using vpl = vector<pair<ll, ll>>;
using ld = double;

#define f first
#define s second 
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ford(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)
#define pb push_back
#define	lb lower_bound
#define	ub upper_bound
#define	sz(x) (int)(x).size()
#define all(x) x.begin(), x.end()
#define ins insert

const int MAX = INT_MAX;

int main() {
	
	char s, t;
	cin>>s;
	cin>>t;
	if (s == 'Y') {
		if (t == 'a') cout<<"A"<<endl;
		else if (t == 'b') cout<<"B"<<endl;
		else cout<<"C"<<endl;
	}
	else {
		if (t == 'a') cout<<"a"<<endl;
		else if (t == 'b') cout<<"b"<<endl;
		else cout<<"c"<<endl;
	}

	return 0;
}
