#ifdef ONPC #define _GLIBCXX_DEBUG #endif #include using namespace std; typedef long long ll; typedef vector vi; typedef vector> vvi; typedef vector> vpi; typedef pair pi; #define F first #define S second #define PB push_back #define MP make_pair #define popcount __builtin_popcountll #define forn(i, a, b) for (int i = a; i < b; i++) void solve() { int a,b;cin>>a>>b; int sum=0; if((a)&1||(b&1)){ cout<<1; } else{ cout<<0; } } signed main() { ios::sync_with_stdio(0); cin.tie(0); int t = 1; // cin >> t; forn(i, 0, t) { solve(); } #ifdef ONPC cerr << endl << "finished in " << clock() * 1.0 / CLOCKS_PER_SEC << " sec" << endl; #endif }