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

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

    if (S == 'Y')
    {
        cout << (char) (T - 32) << endl;
    }
    else
    {
        cout << T << endl;
    }
}

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,a,n) for(ll i=a;i<n;i++)
#define rev(i,n,a) for(ll i=n-1;i>=a;i--)
#define f first
#define s second
#define vll vector<ll>
#define vvll vector<vector<ll>>
#define vpii vector<pair<int,int>>
#define vpll vector<pll>
#define pll pair<ll,ll>
#define secreterror() ios_base::sync_with_stdio(false);cin.tie(NULL);

void solve(){
   
   char ch;
   cin>>ch;
   char bb;
   cin>>bb;

   if(ch=='Y'){
       if(bb =='a'){
           cout<<"A"<<endl;
        }else if(bb=='b'){
            cout<<"B"<<endl;

        }else{
            cout<<"C"<<endl;
        }
    }
   else{
       cout<<bb<<endl;
   }


    
}


int main()
{
    secreterror()
    // ll t;
    // cin>>t;
    // while(t--){
        solve();
    // }

}