N, M = map(int, input().split()) if N % 2 == 0: print(N * M) exit() # 奇数のとき多分嘘ですよね~~~~これ print(M * (N - 1))