LearnPy Hub
← Arena
EasyRating 800

Dominoes on a Board

Print the maximum number of 2×1 dominoes that fit on an m×n board without overlapping.

Input

m n.

Output

A count.

Sample 1

Input
2 4
Output
4

Sample 2

Input
3 3
Output
4
solution.py
Output appears here
Dominoes on a Board · Python Arena problem · LearnPy Hub