#include <iostream> using namespace std; int main() { int x ; while(cin >> x ) { cout << !x << endl ; } return 0; }