import java.util.Scanner; class no244{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); short n=stdIn.nextShort(); System.out.println(n-1); } }