# verification-helper: PROBLEM https://yukicoder.me/problems/no/244 n = int(input()) print(n - 1)