N,M=map(int,input().split()) if N%2==0: print(N*M) exit() A=[0,0] for i in range(33): if (1<