# Enter your code here. Read input from STDIN. Print output to STDOUT from fractions import gcd aa = gcd(10,20) n,m = map(int,raw_input().split()) aa = pow(10,20,10) print n*m-1