peterverebics/CodeNet_Python_118 huggingface dataset:
H,W=map(int,input().split())
if H%2==0 and W%2==0:
    print((H*W)//2)
elif H%2==1 and W%2==0:
    print(H*(W//2))
elif H%2==0 and W%2==1:
    print((H//2)*W)
else:
    print((H*W)//2+(H*W)%2)
#a, b, m = list(map(int, input().split()))
#a = list(map(int, input().split()))
#b = list(map(int, input().split()))
import math
H, W = list(map(int, input().split()))

ans = math.ceil(W/2) * (math.ceil(H/2))
ans += (W // 2) * (H//2)

print(ans)
import math

h,w = map(int,input().split())

if w % 2 == 0:
	cx0 = w // 2
	cx1 = cx0
else:
	cx0 = w // 2 + 1
	cx1 = cx0 - 1

if h % 2 == 0:
	ans = (h // 2) * (cx0 + cx1)
else:
	ans = (h // 2) * (cx0 + cx1) + cx0
print(ans)
h, w = map(int, input().split())

import math
h_odds = math.ceil(h / 2)
h_evens = h // 2
w_odds = math.ceil(w / 2)
w_evens = w // 2
print(h_odds * w_odds + h_evens * w_evens)
import math

H, W = input().split(" ")

H = int(H)
W = int(W)

print(math.ceil(H*W/2))
def main():
    h, w = map(int, input().split())

    if h == 1 or w == 1:
        print(1)
    else:
        print(int(w * h / 2))


if __name__ == '__main__':
    main()
h, w = input().split(' ')
h = int(h)
w = int(w)
if h * w % 2 == 0:
  print(h * w // 2)
else:
  print(h * w // 2 + 1)
H, W = map(int,input().split())

if H % 2 == 1 and W % 2 == 1:
    print(int(H*W/2)+1)
else:
    print(int(H*W/2))
H,W=map(int,input().split())
if (H*W)%2==0:
    print(int((H*W)/2))
else:
    print(int((H*W)/2+1))
HW=input().rstrip('\n').split()
H=int(HW[0])
W=int(HW[1])
if H%2==1 and W%2==1 :
    print (int(H*W/2+1))
else :
    print(int(H * W / 2))
H, W = map(int ,input().split())
ans = (H*W)//2 if (H*W)%2==0 else H*W//2+1
print(ans)
H, W = map(int, input().split())
total = H * W
ans = (total + 1) // 2

print(ans)
import sys
 
input = sys.stdin.readline
H, W = list(map(int,input().split()))
 
if H==1 or W==1:
    print(1)

ans =(H*W+1)//2
print(ans)
h,w = map(int,input().split())
if h %2 == 0 or w %2 ==0:
    print(h*w//2)
else:
    print(h*w//2+1)
a, b=map(int, input().split())
if a*b%2 ==0:
  print(a*b/2)
else:
  print((a*b+1)/2)
i=0
H, W=map(int,input().split())
if H%2==1:
  if W%2==1:
    i+=((W+1)//2)*((H+1)//2)+(W//2)*(H//2)
  else:
    i+=(W//2)*((H+1)//2)+((W+1)//2)*(H//2)
else:
  if W%2==1:
    i+=((W+1)//2)*((H+1)//2)+(W//2)*(H//2)
  else:
    i+=(W//2)*((H+1)//2)+((W+1)//2)*(H//2)
print(i)
H,W=map(int,input().split())
if H%2==0 and W%2==0:
	print((H//2)*(W))
elif H%2==1 and W%2==0:
	print(H*W-((H//2)*(W//2))-((H//2)+1)*(W//2))
elif H%2==0 and W%2==1:
	print(H*W-((W//2)*(H//2))-((W//2)+1)*(H//2))
else:
	print(H*W-((H//2)*((W//2)+1))-((H//2)+1)*(W//2))
import math

h,w = map(int, input().split())
ans = math.ceil(h/2)*math.ceil(w/2)+math.floor(h/2)*math.floor(w/2)
print(ans)
H, W = map(int, input().split())

# num = H * W

if H % 2 == 0 and W % 2 != 0:
    print(int(H/2 * W))
elif H % 2 == 0:
    print(int(H/2 * W))
elif W % 2 == 0:
    print(int(W/2) * H)
else:
    ans = 0
    for i in range(W//2):
        ans += H

    print(ans + (H-(H//2)))
h,w=map(int,input().split())

if h==2 and w==2:
  print(2)
  exit()

ans=0
if h%2==0:
  ans+=(h//2)*w
else:
  ans+=(h//2+1)*(w//2+1)
  ans+=(h//2)*(w//2)
print(ans)
from math import ceil
a, b = [int(x) for x in input().split()]
if a >=2 and b >= 2:
	if a == 2 and b == 2:
		print(2)
	else:print( ((a * b) + 1) // 2)
else:
	print(0)
import math
a = list(map(int,input().split()))
h = a[0]
w = a[1]

if h % 2 == 0:
    print(int(h/2*w))
elif w % 2 == 0:
    print(int(w/2*h))
else:
    mw = w // 2 + 1
    lw = w //2
    print((mw+lw)*(h//2)+mw)
a,b = map(int,input().split())
ans = 0
if a*b % 2 == 0:
  print(int(a*b/2))
elif a == 1 or b == 1:
  print(0)
else:
  print(int((a*b-1)/2 + 1))
h,w=map(int, input().split())
hdiv=h//2
hmod=h%2
if hmod==0:
    print(hdiv*w)
else:
    print(hdiv*w + w//2 + 1)
#!/usr/bin/env python3
h, w = map(int, input().split())
print((h * w + 1) // 2)
H, W = map(int, input().split())

if H % 2 == 0:
	print(W * (H // 2))
else:
	print(W * ((H + 1) // 2) - W // 2)
h, w = list(map(int, input().split()))
if h % 2 == 0:
    print((h // 2) * w)
else:
    print(((h // 2) + 1) * ((w // 2) + 1) + (h // 2) * (w // 2))
h,w = (int(i) for i in input().split())

q_h,m_h = divmod(h,2)

if m_h == 0: 	
	print(w * q_h)
else:
	q_w,q_w = divmod(w,2)
	if q_w == 0:
		print(w * q_h + q_w)
	else:
		print(w * q_h + q_w + 1)
H, W = map(int, input().split())

if (H * W) % 2 == 0:
    print(int(H * W / 2))
elif (H * W) % 2 == 1:
    print(int((H*W)//2+1))
H, W = map(int, input().split())
print ((H * W + 1) // 2)
import math
from decimal import Decimal
H,W = map(int,input().split())
if H%2==0 and W%2== 0:
  print(Decimal((H*W)/2))
elif H%2 == 1 and W%2==1:
  print(Decimal(H*math.floor(W/2)+math.ceil(H/2)))
elif H%2 == 1 and W%2==0:
  print(Decimal(H*math.floor(W/2)))
else:
  print(Decimal(W*math.floor(H/2)))
h, w = map(int, input().split())

if h%2 == 1 and w%2 == 1:
    print(h*w//2 +1)
else:
    print(h*w //2)
def main(w,h):
    x1 = int(w/2 if w%2 == 0 else (w+1)/2)
    x2 = int(w/2 if w%2 == 0 else (w-1)/2)
    if(h%2 == 0):
        res = (h/2)*(x1+x2)
    else:
        res = ((h-1)/2)*(x1+x2) + x1
    return int(res)

w,h = map(int, input().split())
print(main(w,h))
w, h = map(int, input().split(' '))      
if w%2 == 1 and h%2 == 1:                
    t = (w-1)*(h-1)/2                    
    n = t - 1                            
else:                                    
    n = (w * h) / 2                      
print(int(n))
import math

H, W = map(int, input().split())

if H == 1 and W == 1:
    print(0)
else:
    print(int(math.ceil(W*H/2)))
# coding: utf-8

import math

H, W = map(int, input().split())
# print(H, W)

# print(H * W // 2)
N = (H * W) // 2
print(math.ceil(N))
height, width = map(int, input().split())
i, j = 0, 0
if height % 2 > 0:
    i = height // 2 + 1
else:
    i = height // 2

if width % 2 > 0:
    j = width // 2 + 1
else:
    j = width // 2

ans = 0
if height % 2 > 0 or width % 2 > 0:
    ans = i * j + (j - 1) * height // 2
else:
    ans = i * j + j * height // 2
print(ans)
H,W=map(int,input().split())
if H*W%2==0:
  print(H*W/2)
else:
  print(H*W//2+1)
#!/usr/bin/env python3

import math

H, W = map(int, input().split())

if H % 2 == 1 and W % 2 == 1:
    print(math.ceil((H*W)/2))
else:
    print(math.ceil((H*W)/2))
H, W = map(int, input().split())

if W % 2 == 0 or H % 2 == 0:
    print(H * W // 2)
else:
    print(H * (W+1) // 2 - (H-1) // 2)
def main():
    H, W = map(int, input().split(" "))
    # print(a, b)
    # r1 + c1 = r2 + c2
    # r1 - c1 = r2 - c2
    c = H * W
    if c % 2 == 0:
        print(c // 2)
    else:
        print((c // 2) + 1)

    # 500000000000000000
    # 500000000000000000


main()
H, W = map(int, input().split())

if H*W%2==0:
    print(H*W//2)
else:
    print(H*W//2+1)
a,b=map(int,input().split())
x = a
y = b 
if a%2==1:
    a=a//2
    a+=1
else:
    a = a//2
if b%2==1:
    b = b//2
    b+=1
else:
    b=b//2
    b+=1
ans = (a*b)
res1 = 0
res2 = 0
if x%2==0:
    res1 = x//2
else:
    res1 = (x//2)
if y%2==0:
    res2 = y//2
else:
    res2 = (y//2)
ans+=(res1*res2)
if a==1 or b==1:
    print("1")
print(ans)
H,W = map(int, input().split())

all_num = H * W
#奇数か偶数かの判定
compare_num = all_num % 2

if compare_num == 0:
  print(all_num // 2)
else:
  print(all_num // 2 + 1)
import math
H, W = list(map(int,input().split()))
seki = H * W
if seki % 2 == 0:
    print(int(seki/2))
else:
    print(math.ceil(seki/2))
import sys
def input():
    return sys.stdin.readline()[:-1]
H,W = map(int,input().split(' '))
A = W//2+1
if W==1:
    print(1)
    exit()
if H%2==0:
    print(W*H//2)
else:
    print(W*(H-1)//2+A)
H,W=map(int,input().split())
if (H*W)%2==0:
    B=int((H*W)/2)
    print (B)
else:
    if (H+W)%2==0:
        C=int((H*W+1)/2)
        print (C)
    else:
        D=int((H*W-1)/2)
        print(D)
H, W = map(int, input().split())
if H*W == 1:
    print(1)
elif H*W%2 == 0:
    print(H*W//2)
else:
    print(H*W//2 + 1)
H,W = map(int,input().split())
P = H*W

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

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

MOD = 10**9 + 7

if max(h, w) >= 10**4:
   h = float(h / 10**5)
   w = float(w / 10**5)

   ans = (h % MOD) * (w % MOD) // 2
   if h % 2 == 1 and w % 2 == 1:
      print(int(ans*10**10+1))
   else:
      print(int(ans*10**10))
else:
   ans = (h % MOD) * (w % MOD) // 2
   if h % 2 == 1 and w % 2 == 1:
      print(int(ans+1))
   else:
      print(int(ans))
h,w = map(int,input().split())

print((w+1)//2*(h%2) + w*(h//2))
H,W = map(int, input().split())

ans = int((W // 2) * H)

if W % 2 != 0:
    if H % 2 == 0:
        ans = int(ans + (H / 2))
    else:
        ans = int(ans + ((H + 1) / 2))

print(int(ans))
h, w = map(int, (input().split()))
print(-(-h // 2) * (-(-w // 2)) + (h // 2) * (w // 2))
H, W = map(int, input().split())

if H*W % 2 == 0:
    print(H*W//2)
elif H*W==1:
    print(1)
else:
    print(H*W//2 + 1)
h, w = map(int, input().split())
ans = (h // 2 + h % 2) * (w // 2 + w % 2) + (h // 2) * (w // 2)
print(ans)
import math
H,W=(int(x) for x in input().split())
num=(H*W)/2
print(math.ceil(num))
import sys
sys.setrecursionlimit(10**9)
h, w = map(int, input().split(' '))
ans = h * w
if ((ans % 2) == 1):
    print((ans // 2) + 1)
elif((ans % 2) == 0):
    print(ans // 2)
H, W = map(int, input().split())

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

if h*w % 2 == 1:
    print(str(int(h*w/2) + 1))
else:
    print(str(int(h*w/2)))
from sys import stdin
import math as m
input = stdin.readline

r,c = map(int,input().split())

total = m.ceil(c/2) * m.ceil(r/2) + m.floor(c/2)* m.floor(r/2)

print(total)
a, b = map(int, input().split())

if a % 2 == 0 or b % 2 == 0:
  print(a * b // 2)
  
if a % 2 == 1 and b % 2 == 1 and b > 1 :
  ans = a * (b //2) + (a + 1) //2
  print(ans)
  
if a % 2 == 1 and b == 1:
  ans1 = (a * b + 1) //2
import math

H, W = map(int, input().split(' '))

if H == 1 or W == 1:
  print(1)
  exit()

res = int((H*W)/2)
print(res)
h, w = map(int, input().split())
if h == 1 or w == 1:
    print(1)
else:
    print(round(((h * w + 1) / 2)))
h, w = map(int, input().split())

MOD = 1000000007

ans = (h % MOD) * (w % MOD) * 0.5

import math
print(math.ceil(ans))
H, W = map(int,input().split()) # 複数の数字を変数に格納

import math

print(math.ceil(H*W/2))
h,w = map(int,input().split())
if ((h*w)%2) == 0:
	print(round((h*w)/2))
else:
	print(((h*w)//2)+1)
h,w=map(int,input().split())

if (h*w)%2==0:
    print(int(h*w/2))
else:
    print(int((h*w+1)/2))
import math as m

h, w = map(int, input().split())
print(m.ceil(h * w / 2))
x, y = map(int, input().split())
if x == 1 or y == 1:
    print(0)
elif (x * y) % 2 == 0:
    print((x * y) // 2)
else:
    print((x * y + 1) // 2)
H, W = map(int, input().split())
if H == 1 or W == 1:
  print(1)
if (H*W) % 2 == 1:
  print((H*W//2)+1)
else:
  print(H*W//2)
import numpy as np
N = list(map(np.int64, input().split()))
print((N[0]*N[1]+1)//2)
H, W = map(int, input().split())

if H % 2 == 0 or W % 2 == 0:
  print(H * W // 2)
else:
  print((H * W - 1) // 2 + 1)
import math
h,w = map(int,input().split())
ans = 0
if h % 2 == 0:
    ans += (h/2)*w
else:
    ans += (math.ceil(h/2)*math.ceil(w/2)+math.floor(h/2)*math.floor(w/2))
print(round(ans))
n,m=map(int,input().split())
r=n*m
print(((n+1)//2)*((m+1)//2) +(n//2)*(m//2))
w,h = map(int,input().split())

tmpH=0
tmpHamari = w%2
if tmpHamari==1:
    tmpH=int(h/2)+1
else:
    tmpH=int(h/2)

tmpWamari = w%2
bigW = int(w/2)
smallW = int(w/2)
if tmpWamari==1:
    bigW+=1

print((tmpH*bigW) + ((tmpH-1)*smallW))
H, W = list(map(int, input().split()))

ret = H * (W // 2)
if W % 2 == 1:
    ret += (1+H) // 2
print(ret)
i = list(map(int, input().split()))
print(i[0]*i[1]/2)
h, w = map(int, input().split())

if h == 1 and w == 1:
    print(1)
else:
    import math
    h_odds = math.ceil(h / 2)
    h_evens = h // 2
    w_odds = math.ceil(w / 2)
    w_evens = w // 2
    print(h_odds * w_evens + h_evens * w_odds)
h,w = list(map(int, input().split()))
if h%2==0:
    print((h*w)//2)
else:
    if w%2==0:
        print((w//2)*h)
    else:
        print(((h//2)*w)+(w//2)+1)
import math
H,W = map(int,input().split())
print(math.ceil(H*W/2))
H,W = map(int,input().split())
if H*W%2 == 1:
    print((H*W//2)+1)
else:
    print(H*W//2)
import math
HW = input().split()
H = int(HW[0])
W = int(HW[1])
print(math.ceil(H*W/2))
H,W=map(int,input().split())
dir_H=0
dir_W=0

if H%2==0:
    dir_H=H//2
    print(dir_H*W)
else:
    if W%2==0:
        dir_W=W//2
        print(dir_W*H)
    else:
        dir_H=H//2+1
        dir_W=W//2+1
        print(dir_H*dir_W+(H-dir_H)*(W-dir_W))
h,w = map(int,input().split())
if h%2 == 0 and w%2 == 1:
    print((h//2)*w)
elif w%2 == 0 and h %2 == 1:
    print((w//2)*h)
elif h%2 == 0 and w %2 == 0:
    print((h//2)*w)
else:print((h//2)*w+(w//2+1))
import math

height, width = [int(i) for i in input().split(' ')]

reachables = math.ceil(width/2.0) * math.ceil(height/2.0) + math.floor(width/2.0) * math.floor(height/2.0)
print(reachables)
from sys import stdin
h,w = [int(x) for x in stdin.readline().rstrip().split()]
import math
def bishop(h,w):
    if h == 1:
        ans = 1
    else:
        ans = int(w/2)*h + (w%2)*math.ceil(h/2)
    return ans
import math
n,w=map(int,input().split())
ans=math.ceil(w/2)*math.ceil(n/2)+(w//2)*(n//2)
print(ans)
def main():
    h,w = map(int,input().split())
    v = 0
    if h %2 == 0:
        v = h // 2
        print(v*w)
        return
    else:
        if w % 2 == 0:
            print(w//2*h*2//2)
            return
        else:
            print((w//2)*h*2//2 + h//2+1)
if __name__=='__main__':
    main()
HW=input().split()
H=int(HW[0])
W=int(HW[1])
if H%2==1 and W%2==1 :
    print (int(H*W/2+1))
else :
    print(int(H * W / 2))
h, w = map(int, input().split())
if h == 0 or w == 0:
  print(1)
elif h * w % 2 == 0:
  print(int(h * w /2))
else:
  print(int(h * w // 2 +1))
H, W =map(int, input().split())
ans =0
if H %2 ==0:
    ans =0
    ans = (H *W )//2
else:
    ans =0
    ans = ((H-1) * W)//2
    ans += (W+1)//2
print(int(ans))
def resolve():
    H, W = list(map(int, input().split()))
    if H == 1 and W == 1:
        print(1)

    if H % 2 == 1:
        print(int((H-1) * W / 2 + (W // 2 + 1)))
    else:
        print(int(H * W / 2))

    return
resolve()
[H, W] = list(map(int, input().split()))
area = H*W
if H == 1 or W == 1:
  print(0)
else:
  if area%2 == 0:
    print(int(area/2))
  if area%2 == 1:
    print(area//2 + 1)
m,n=map(int,input().split())
k=m*n
if(k//2==0):
  print(k//2)
else:
  print((k+1)//2)
n,m = map(int,input().split())
n1 = int(n/2)
n2 = n-n1
m1 = int(m/2)
m2 = m-m1

ans = n2*m2+n1*m1
print("%d"%ans)
n,m=map(int,input().split())
print(m*(n//2)+((m//2)+(m%2))*(n%2))
H,W = map(int,input().split())
if H%2 == 1 and W%2 == 1:
  print(H*W//2 + 1)
else:
  print(H*W//2)
import math
a=input().split(' ')
if(int(a[0])==1):
    print(1)
else:
    if(int(a[1])==1):
        print(1)
    else:
        print(math.floor(int(a[0])*int(a[1])/2))
import math
s = input().rstrip().split(' ')
height = int(s[0])
width = int(s[1])
area = height * width
if type(area / 2) == int:
	print(area / 2)
else:
	print(math.ceil(area / 2))
h, w = map(int, input().split())

if (h * w) % 2 == 0:
    print(int(h * w / 2))
else:
    print(int(h * w / 2) + 1)
#n = int(input())
h,w = map(int,input().split())
#a_L = list(map(int,input().split()))
ans = 0

if h%2 == 0 and w%2 ==0:
    # ok
    ans = int(w//2) * h
elif h%2 != 0 and w%2 !=0:
    # ok
    tmp = w//2 + 1
    tmp2 = w//2
    ans = tmp * (h//2+1) + tmp2 * h//2
elif h%2 != 0 and w%2 == 0:
    
    ans = int(w//2) * h
elif h%2 == 0 and w%2 != 0:
    # ok
    tmp = w//2 + 1
    tmp2 = w//2
    ans = tmp * (h//2) + tmp2 * h//2

print(ans)
h,w = map(int,input().split())
if(h%2==0):
  ans = (h/2) * w
else:
  ans = ((h//2 + 1) * (w//2 + 1)) + ((h//2)*(w//2))
  
print(round(ans))
import math
h,w=map(int,input().split())
ans=math.ceil(h*w/2)
print(ans)
h, w = map(int, input().split())

dep = h // 2
wid = w // 2

if h == 1 or w == 1:
    print(0)
    exit()
if h % 2 == 0:
    print(dep * w)
else:
    print((dep + 1) * (w - wid) + dep * wid)
H, W = map(int, input().split())

a = H * W


if a % 2 == 0:
     print(a)
else:
     print(a+1)
import math

h, w = map(int, input().split())

if h == 1 or w == 1:
    print(0)
else:
    print(math.ceil((h*w)/2))
H, W = input().split()
H = int(H)
W = int(W)
A = (H * W + 1) / 2
A = int(A)
print(A)
h, w = map(int, input().split(" "))
ans = (h//2) * w
if h % 2 == 1:
    ans += (w//2 +w%2)
print(ans)
H,W=input().split()
h=int(H)
w=int(W)
if h%2!=0 and w%2!=0:
  print(int((h*w/2)+1))
else:
  print(int(h*w/2))
import math
a = list(map(int,input().split()))

m = 0
h = a[0]
w = a[1]

'''
for hi in range(h):
    for wi in range(w):
        if hi+1 + wi+1 == 2 or hi - wi == 0 or wi - hi == 0:
            m += 1

print(m)

for hi in range(h):
    for wi in range(w):
        if (hi+1 + wi+1) % 2 == 0:
            m += 1
'''

m = math.ceil(w/2) * math.ceil(h/2) + math.floor(w/2) * math.floor(h/2)

print(m)
h,w = map(int,input().split())

if h%2 == 0 or w%2 == 0:
    if h%2 == 0:
        result = (h//2) * w
        print(result)
    else:
        result = (w//2) * h
        print(result)
else:
    result = h//2 * (w//2) + (h-h//2) * (w -w//2)
    print(result)
h,w = [int(i) for i in input().split()]

if h == 1 or w == 1:
  print(0)
else:
  print(h * w // 2 + 1 if h * w % 2 else h * w //2 )
h, w = map(int, input().split())
if h % 2 == 0:
  print(int(h*w//2))
elif w % 2 == 0:
  print(int(h//2 *w + w//2))
else:
  print(int(h//2 *w + w//2 + 1))
h,w = map(int,input(). split())
if (h == 1) or (w == 1):
  answer = 1
  print(answer)
elif (h%2 == 1) and (w%2 == 1):
 
  answer = ((h*w)+1)/2
  print(answer)
else:
  answer = h*w/2
  print(answer)
from math import ceil

H, W = map(int,input().split(" "))

ans = (H//2)*W if H%2 == 0 else (H//2+1)*(ceil(W/2))+(H//2)*(W//2)

print(int(ans))
# coding: utf-8

# 標準入力 <int><int>
H, W = map(int, input().split())

ans = H * W // 2

if (H * W) % 2 == 1:
    ans += 1

print(ans)
import math
h, w = map(int, input().split())

if w % 2 == 0:
  count = (w / 2) * h
else:
  c1 = math.ceil(w / 2)
  c2 = math.floor(w / 2)
  if h % 2 == 0:
    count = (h / 2) * (c1 + c2)
  else:
    count = math.floor(h / 2) * (c1 + c2) + c1
print(int(count))
H, W = map(int, input().split())
print((H*W + 1) // 2)
H,W=map(int,input().split())
if H*W%2==0:
  print(H*W/2)
else:
  print(H*W/2+1)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	B
# CreatedDate:  2020-03-14 21:09:03 +0900
# LastModified: 2020-03-14 21:16:00 +0900
#


import os


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


if __name__ == "__main__":
    main()
H, W = map(int, input().split())

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

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

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

if(H%2 != 0):
    ha = H//2+1
    hb = H-ha
else:
    ha = H//2
    hb = H-ha
if(W%2 != 0):
    wa = W//2+1
    wb = W-wa
else:
    wa = W//2
    wb = W-wa
if(H != 1 and W != 1):
    print(ha*wa+hb*wb)
else:
    print(0)
h,w=map(int,input().split())
print(1if min(h,w)else(h*w+2-1)//2)
height,width = map(int,input().split())

if height%2==0:
  h1 = h2 = height//2
else:
  h1 = height //2 +1
  h2 = h1 -1

ans = h1*(width//2) + h2*(width//2) + h1*(width%2)

print(ans)
H,W=map(int,input().split())
if H%2==0 and W%2==0:
	print((H//2)*(W))
elif H%2==1 and W%2==0:
	print(((H//2)*(W//2))+((H//2)+1)*(W//2))
elif H%2==0 and W%2==1:
	print(((W//2)*(H//2))+((W//2)+1)*(H//2))
else:
	print(((H//2)*((W//2)+1))+((H//2)+1)*(W//2))
import sys
input = sys.stdin.readline

def main():
    h,w=map(int,input().split())
    if w%2==1:
        if h%2==1:
            ans=(w*h+1)/2
        else:
            ans=(w*h)/2
    else:
        ans=(w*h)/2
    print(int(ans))

if __name__ == '__main__':
    main()
a,b = map(int,input().split())
if a%2==0:
    print(b*(a//2))
else:
    if b%2==0:
        print((b//2)*a)
    else:
        print((a//2)*(b//2)+(a//2+1)*(b//2+1))
import math
x,y = map(int, input().split())
tot = x*y

if x%2==1 and y%2==1:
    tot = (tot+1)/2
else:
    tot = tot/2
print(math.floor(tot))
H,W = map(int,input().split())

if H*W%2 ==1:
    A = H*W//2+1
else:
    A = H*W//2
  

print(A)
h,w = map(int,input().split())

s = h * w / 2

if s % 2 == 0:
    t = int(s)
else:
    t = int (s + 1)

print (t)
H,W=map(int,input().split())
print(-(-H*W//2))
a, b, c = map(int, input().split())

if 4 * a * b < (c - a - b) ** 2 and c - a - b > 0:
    print('Yes')
else:
    print('No')
import math
a, b, c = map(int, input().split())

if 4 * a * b >= (c - b - a) ** 2 or c - b - a < 0:
    ans = "No"
else:
    ans = "Yes"


print(ans)
a,b,c=map(int,input().split())
if c-a-b>0 and 4*a*b<(c-a-b)**2:
    print('Yes')
else:
    print("No")
import numpy as np

a, b, c = map(int, raw_input().split())

if b > a:
    temp = a
    a = b
    b = temp

res = c - a
res = res - b
temp = 4*a*b


if res <0:
    print "No"
elif res**2 > temp:
    print "Yes"
else:
    print "No"
from math import sqrt
a,b,c=map(int,input().split())
if (c-a-b)>0 and 4*a*b<(c-a-b)*(c-a-b):
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
ans = None
if a + b >= c:
    ans = "No"
elif 4 * a * b < c ** 2 + (a + b) ** 2 - 2 * c * (a + b):
    ans = "Yes"
else:
    ans = "No"
print(ans)
from decimal import *
getcontext().prec = 50

a, b, c = map(int, input().split())

if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
    print('Yes')
else:
    print('No')
import sys
input = lambda: sys.stdin.readline().rstrip()
from decimal import *

a,b,c = map(int, input().split())


a = Decimal(a).sqrt()
b = Decimal(b).sqrt()
c = Decimal(c).sqrt()

if a + b < c:
    print("Yes")
else:
    print("No")
import sys

a, b, c = map(int, input().split())

if a + b > c:
    print("No")
    sys.exit()

if 4*a*b < (c-a-b)**2:
    print("Yes")
else:
    print("No")
def main():
    a,b,c  = map(int,(input().split()))

    if c-a-b <0:
        print('No')
    elif 4*a*b - (c-a-b)**2 < 0:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()
import math
a,b,c=map(int,input().split())
aa=math.sqrt(a)
bb=math.sqrt(b)
cc=math.sqrt(c)
ans=a**2+b**2+c**2-2*(a*b+b*c+a*c)
ans2=((aa+bb+cc)*(c-a-b+2*math.sqrt(a*b)))
print("Yes" if 0<ans/ans2 else "No")
from math import sqrt
def main():
    a, b, c = map(int, input().split())
    if 4*a*b < (c - a - b) ** 2 and (c-a-b) >= 0:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()
a, b, c = list(map(int, input().split()))
y = (a + b - c) ** 2 - 4 * a * b
condition = y < 0
if c - a - b < 0:
    print("No")
elif 4 * a * b - (a + b - c) ** 2 < 0:
    print("Yes")
else:
    print("No")
a,b,c = map(int,input().split())
if a + b > c:
    print('No')
    exit()
if ((c - a - b) ** 2) - 4 * a * b > 0:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
if c-a-b>0 and 4*a*b < (c-a-b)**2:
  print('Yes')
else:
  print('No')
a, b, c = map(int,input().split())
#if math.sqrt(a)+math.sqrt(b) < math.sqrt(c):
if c-a-b> 0 and (c-a-b)**2 > 4*a*b:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
if c - a - b > 0 and 4 * a * b < (c - a - b) ** 2:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
if c - a - b < 0:
    print("No")
    exit()
if 4*a*b < (c-a-b)**2:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())

if c-(a+b) >= 0:
    if 4*a*b < (c-(a+b))**2:
        print('Yes')
    else:
        print('No')
else:
        print('No')
a,b,c=map(int,input().split())
if 4*a*b < (c-a-b)**2 and (c-a-b)>0:
    print('Yes')
else:
    print('No')