Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

List = list(range(H) for i in range(W))
count = 0

for i in range(W):
  for j in range(H):
    if List[i][j]%2 == 0 and i%2 ==0 or List[i][j]%2 == 1 and i%2 ==1:
      count +=1

print(count)


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

List = list(range(H) for i in range(W))
count = 0

for i in range(W):
  for j in range(H):
    if List[i][j]%2 == 0 and i%2 ==0:
      count +=1
    elif List[i][j]%2 != 0 and i%2 !=0:
      count +=1

print(count)


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))

Buggy python submission (verdict: Runtime Error):
H, W = map(int, input().split())

List = list(range(W))
count = 0

for i in range(W):
    if List[i]%2 == 0:
      count +=1

if W%2 ==0:
  Answer = count*H
else:
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))

Buggy python submission (verdict: Runtime Error):
H, W = map(int, input().split())

List = list(range(W))
count = 0

for i in range(W):
    if List[i]%2 == 0:
      count +=1

if W%2 ==0:
  Answer = count*H
else:
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*(H-1) - (H-1)/2 + count

print(int(Answer))


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))

Buggy python submission (verdict: Runtime Error):
H, W = map(int, input().split())

List = list(range(W))
count = 0

for i in range(W):
    if List[i]%2 == 0:
      count +=1

if W%2 ==0:
  Answer = count*H
else:
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*(H-1) - (H-1)/2 + count

print(Answer)


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

List = list(range(H) for i in range(W))
count = 0

for i in range(W):
  for j in range(H):
    if List[i][j]%2 == 0 and i%2 ==0:
      count +=1
    elif List[i][j]%2 == 1 and i%2 ==1:
      count +=1
      
print(count)


Fixed submission:
H, W = map(int, input().split())

if H==1 or W==1:
  Answer =1

elif W%2 ==0:
  Answer = W/2*H
  
else:
  count = (W-1)/2 +1
  if H%2 ==0:
    Answer = count*H - H/2
  else:
    Answer = count*H - (H-1)/2

print(int(Answer))