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

int main() {
  string S,T;
  cin >> S >>T;
  if(S=="Y"&&T=="a"){
    cout << "A" << endl;
  }else if(S=="Y"&&T=="b"){
    cout << "B" << endl;
  }else if(S=="Y"&&T=="c"){
    cout << "C" << endl;
  }else{
    cout << T << endl;
  }
}
#include<bits/stdc++.h>
using namespace std;
#define ll long long

#define rep(i,n) for(int i = 0; i < (n); i++)

int main () {
    char s, t;
    cin >> s >> t;
    if(s == 'Y'){
        cout << char(t - 0x20) << endl;
    } else {
        cout << t << endl;
    }
    return 0;
}