#include<iostream>using namespace std;int main(){ int w; cin>>w; (w>50) ? cout<<w-1<<"\n" : cout<<w<<"\n";}