• + 0 comments
    n,m = map(int, input().split())
    x= n*m
    if x ==1:
        print(0)
    else:
        print(x-1)