class Problem0244: def solve(this): n = int(input()) print(n - 1) if __name__ == "__main__": problem = Problem0244() problem.solve()