#include using namespace std; int main() { int N; cin >> N; long int* X; X = new long int[N]; for (int i = 0; i < N; i++) cin >> X[i]; cout << N % 2 << endl; }