# Enter your code here. Read input from STDIN. Print output to STDOUT a, b = gets.chomp.split(" ").map &:to_i ans = 0.to_i puts a*b-1