#!/usr/bin/python # -*- coding: utf-8 -*- print int(raw_input()) - 1