#include <bits/stdc++.h>

using namespace std;

int main()
{
 char s,t;

 cin>>s>>t;

 if(s == 'Y')
 {
  if(t == 'a'|| t == 'A')
     cout<<'A';
  else if(t == 'b'|| t == 'B')
     cout<<'B';
  else if(t == 'c'|| t == 'C')
     cout<<'C';
 }
 else if(s == 'N')
 {
   cout<<t;
 }
 
return 0;
}

#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O0")
typedef long long int ll;
typedef long double ld;
const ll mod = 1e9+7;
const ll INF = 1e18;
#define rep(i,n) for (ll i = 0; i < (n); ++i)
#define Rep(i,a,n) for (ll i = (a); i < (n); ++i)
#define All(a) (a).begin(),(a).end()
#define Pi acos(-1)
using Graph = vector<vector<ll>>;
using V = vector<ll>;
using P = pair<ll,ll>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << setprecision(15) << fixed;
  chrono::system_clock::time_point start,end;
  start = chrono::system_clock::now();

  char s,t;
  cin >> s >> t;
  if (s == 'Y') cout << char(toupper(t)) << '\n';
  else cout << t << '\n';

  end = chrono::system_clock::now();
  auto elapsed = chrono::duration_cast< chrono::milliseconds >(end - start).count();
  cerr << elapsed << "ms" << '\n';
}