program ABC_082_A_RoundUptheMean
   implicit none
   integer a, b
   read(*, *) a, b
   if(mod(a+b, 2) == 0) then
       write(*, *) (a + b) / 2
   else 
       write(*, *) (a + b) / 2 + 1
   end if
end program ABC_082_A_RoundUptheMean