import std.stdio; void main() { int x; readf("%s\n", &x); writeln(0 == x ? 1 : 0); }