https://www.acmicpc.net/problem/2163
const fs=require('fs') ip=fs.readFileSync(0).toString().split(' ') console.log(ip[0]*ip[1]-1)