function main(input) {
    const [ a, b ] = input.split(' ')
    const ceiled = Math.ceil(a * b)

    if (ceiled == a * b) {
        console.log(ceiled)
    } else {
        console.log(ceiled - 1)
    }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
