module main; import std; void main() { // 入力 int X = readln.chomp.to!int; // 答えの計算と出力 writefln("%d", !X); }