#!/usr/bin/python # -*- coding: utf-8 -*- i = int(raw_input()) S = [1,0] print S[i]