#include <algorithm>
#include<iostream>
#include<vector>
#include<deque>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<set>
#include<string>
#include <sstream>
#include<bitset>

#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<limits.h>
const int INF = 0x7fffffff;
using lll = long long;
using ull = unsigned long long;
using namespace std;


int main(){
  lll ii,jj,kk;
  vector<int> ret;

  string s,t;
  char ans;
  cin >> s >> t;

  if(s == "Y"){
    ans = t[0] + 'A' - 'a';
    cout << ans << endl;
  }
  else{
    cout << t << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main()
{
    int n,w;
    cin>>n>>w;

    cout<<n/w;


    return 0;
}
