import java.util.*; public class Exercise63{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int top = sc.nextInt(); System.out.println(top - 1); } }