#include <iostream> using namespace std; int main() { string c; cin >> c; if (c[c.size() - 1] & 1) cout << 1; else cout << 0; return 0; }
感兴趣的话点个赞或关注我~