N, M = (int(x) for x in input().split()) if N%2 == 0: print(N*M) else: print((N-1)*M)