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