#coding: UTF-8 import sys import re import itertools from collections import deque ### defs ### ### main ### N = int(sys.stdin.readline()) print(N-1)