author="jaykm" fqwdrf="fdwdfdw" FDWFEW="DFDFE" n, m =map(int, raw_input().split()) print (n*m)-1 author="jaykm"