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