package m.shin; import java.util.Scanner; public class Con244 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); s.close(); System.out.println(N-1); } }