#include<bits/stdc++.h>using namespace std;int main(){ int w; cin >> w; if(w > 50) w = w-1 ; cout<<w<<"\n"; }