N = input() print N-1