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