import java.util.Scanner; public class B{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { int[] v = {7,1,1,4,5,1,4,3,0,2}; System.out.println(s.nextInt()-1); } }