#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a;
    cin>>a;
    cout<<a-1<<endl;
}

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