#include int main(void){ int input; scanf( "%d", &input ); printf( "%d\n", ( input + 1 ) % 2 ); }