W, H = map(int, input().split()) if H % 2 == 0: print(W * (H + 1)) else: print(W * (H + 1) + 1)