{"raw_statement":[{"iden":"problem statement","content":"We have a board with $H$ horizontal rows and $W$ vertical columns of squares. There is a bishop at the top-left square on this board. How many squares can this bishop reach by zero or more movements?\nHere the bishop can only move diagonally. More formally, the bishop can move from the square at the $r_1$\\-th row (from the top) and the $c_1$\\-th column (from the left) to the square at the $r_2$\\-th row and the $c_2$\\-th column if and only if exactly one of the following holds:\n\n*   $r_1 + c_1 = r_2 + c_2$\n*   $r_1 - c_1 = r_2 - c_2$\n\nFor example, in the following figure, the bishop can move to any of the red squares in one move:\n![image](https://img.atcoder.jp/panasonic2020/943f3f8428e6f8328924ff99681c932b.png)"},{"iden":"constraints","content":"*   $1 \\leq H, W \\leq 10^9$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$H \\ W$"},{"iden":"sample input 1","content":"4 5"},{"iden":"sample output 1","content":"10\n\nThe bishop can reach the cyan squares in the following figure:\n![image](https://img.atcoder.jp/panasonic2020/b218e01560fe6e40e7d082ca57a64e6e.png)"},{"iden":"sample input 2","content":"7 3"},{"iden":"sample output 2","content":"11\n\nThe bishop can reach the cyan squares in the following figure:\n![image](https://img.atcoder.jp/panasonic2020/088830f8a244d99a9f95d20bf9a8d336.png)"},{"iden":"sample input 3","content":"1000000000 1000000000"},{"iden":"sample output 3","content":"500000000000000000"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}