'use strict'
function main(input: String) {
    const [a, b] = input.split(' ').map(v => parseInt(v));
    console.log(a * b >= 81 ? a * b : -1);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));