#include using namespace std; int main(void) { string S; cin >> S; int N = S.size(); if ((S[N - 1] - '0') % 2 == 0) { cout << 0 << endl; } else { cout << 1 << endl; } cout << "No" << endl; }