# Enter your code here. Read input from STDIN. Print output to STDOUT import sys a,b=map(int,sys.stdin.readline().split()) print a*b-1