#include<iostream> using namespace std; int main(){ char a,b; int n=2; cin>>a; b=((a-65)+2)%26+65; cout<<b<<endl; return 0; }