#!/usr/bin/python3 # This problem is http://yukicoder.me/problems/651 first_line = input() vertex_length = int(first_line) print(vertex_length - 1)