import java.util.Scanner;

public class fran {
	
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		System.out.println(reader.nextInt() - 2);
		reader.close();
	}

}
