#33419: 你說不要我偏要


yp11151203@yphs.tp.edu.tw (909-37楊子頡)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int x;
    while(cin>>x){
        if(x>50) cout<<x-1<<endl;
        else cout<<x<<endl;
    }
      return 0;
}