#include using namespace std; int main() { int a,b; cin >>a>>b; if ((a*b)%2==0) cout << 0; else { if(a>b) cout<