#include<stdio.h>#include<stdlib.h>int main(){ int w,i; while((scanf("%d",&w))!=EOF) { i=(w>50)? w-1:w; printf("%d",i); } return 0;}