import sys readline=sys.stdin.readline N=int(readline()) ans=N-1 print(ans)