#55636: ...


yp11550191@yphs.tp.edu.tw (703-06胡愷芯)


#include<iostream>
using namespace std;
int main()
{
int w;
cin>>w;
if (w>50){
cout<<w-1<<endl;
}else{
cout<<w<<endl;
}
 
}