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