#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n<=50){
cout<<n;
}
else{
cout<<n-1;
//我只是好奇如何減肥....