#include<bits/stdc++.h>
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
  char s,t;
  cin>>s>>t;
  if(s=='Y')cout<<char(toupper(t))<<endl;
  else cout<<t<<endl;
  return 0;
}
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
//#include<atcoder/all>
#include<iostream>
#include<cstdint>
#include<cstddef>
using namespace std;
//using namespace atcoder;
using i32 = int_fast32_t;
using i64 = int_fast64_t;
using usize = uint_fast64_t;
#define rep(i, n) for (usize i = 0; i < (usize)(n); i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
using P = pair<i64,i64>;

int main(){
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    char a;
    char b;
    cin >> a >> b;
    if(a == 'Y'){
        if(b == 'a')cout << 'A' << endl;
        else if(b == 'b')cout << 'B' << endl;
        else cout << 'C' << endl;
    }else{
        cout << b << endl;
    }
}