# Enter your w here. Read input from STDIN. Print output to STDOUT T=map(int,raw_input().strip().split()) print (T[0]*T[1])-1