#include <iostream> using namespace std; int main(){ char c; cin>>c; if(c>='A'&&c<='Z'){ cout<<c-'A'+1; } else{ cout<<"No"; } return 0; }