a = int(input()) a = a-1 print(a)