#include <bits/stdc++.h>
#define rep(i, e, n) for (int i = e; i < (n); ++i)
using namespace std;
typedef long long ll;
using P = pair<int,int>;
const ll inf=1000000000007;
const int mod=1000000007;

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

#include <bits/stdc++.h>
#define N 100005
#define SpeedCode ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);

using namespace std;

int a;

int main(){
	SpeedCode;
	cin>>a;
	cout<<a-1;
}