import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000244_Main { public static void main(String[] args) throws IOException { System.out.println(Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()) - 1); } }