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