#include <iostream>
using namespace std;
int main(){ int weight; cin >> weight; cout << weight - (weight > 50) << endl; return 0;}