1331B - Limericks
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
string s;
int n;
cin >> s;
n = s.size();
cout << (s[n - 1] % 2 == 1) << endl;
return 0;
}