#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
while(a>50){
a--;
break;
}
cout<<a<<endl;