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