# -*- coding: utf-8 -*- N = int(input()) print(N-1)