#include<iostream>
using namespace std;
int main(){
int a; //宣告
cin>>a; //輸入
if(a>50){ //如果大於50
cout<< a-1; //-1
}else{
cout<<a; //輸出原本的數
}
}