'use strict';

function main(arg) {
    let A = arg.split(" ")[0];
    let B = arg.split(" ")[1];
    console.log((A * B) % 2 !== 0 ? true : false);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));