#include <bits/stdc++.h>
using namespace std;
#define SZ(a) ((int)(a).size())
typedef long long int64;
int main() {
#ifdef LOCAL
  freopen(".a.in", "r", stdin);
#endif
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  string s, t;
  cin >> s >> t;
  if (s[0] == 'Y') {
    if (t[0] >= 'A' && t[0] <= 'Z')
      cout << char(t[0]);
    else
      cout << char(t[0] - 'a' + 'A');
  } else {
    cout <<char( t[0]) << "\n";
  }

  return 0;
}
//10.10.2020 20:00:47 CST

#include<bits/stdc++.h>
using namespace std;
int main()
{
  char S,T;
  cin >> S >> T;
  if(S=='Y')
  {
    if(T=='a')
    {
      cout<<'A'<<endl;
      return 0;
    }
    if(T=='b')
    {
      cout<<'B'<<endl;
      return 0;
    }
    if(T=='c')
    {
      cout<<'C'<<endl;
      return 0;
    }
  }
    else
    {
      cout<<T<< endl;
    }
}