#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
if (n<=50){
cout << n <<endl;
}
else {
cout << n-1 <<endl;