x = input()
y = x.split(" ")
y = [int(x) for x in y]
a = y[0]
b = y[1]
total = a * b
roads = a*1 + b*1 - 1
rem = total - roads
rem = int(rem)
print(rem)
print("In this case, the area is", rem, "square yards.")