# Enter your code here. Read input from STDIN. Print output to STDOUT x,y = map(int, raw_input().split()) print x*y-1