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

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int a,b;
    cin>>a>>b;
    int k=(2*a)+100;
    cout<<k-b<<endl;
}
