#include <iostream>
using namespace std;
int main(){ int u; while(cin>>u){ for(int i=u;i>50;){ cout<<i-1; break; } for(int i=u;i<=50;){ cout<<i; break; } } return 0;}