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