#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; bool b = a; cout << int(b); return 0; }