#32230: python 一行


yuxuan0912 (李毓萱Laura)


print((lambda x: x-1 if x>50 else x)(int(input())))