# coding: utf-8 ##yuki_244 n=int(raw_input()) print n-1