#include int main() { if (getchar() - '0' == 0) printf("%d\n", 1);else printf("%d\n", 0); }