import java.util.*; public class pre { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println(s.nextInt()==0?1:0); } }