#28166: 真python絕對對解題法


2006teng@gmail.com (不幸福的巡撫)


a=int(input())

if a > 50:

    a=a-1

print(a)