import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int ans = scan.nextInt() - 1; System.out.println(ans); } }