# Enter your code here. Read input from STDIN. Print output to STDOUT m, n = gets.split(' ').map(&:to_i) p m * n - 1