object Solution { def main(args: Array[String]) { val Array(x,y) = io.StdIn.readLine.split(' ').map(_.toLong) println(x * y - 1) } }