PROGRAMMING:Symmetry of cattle
Farmer John loves symmetrical things, and now he's going to put his cattle on the farm$$ 1 million $$). To maintain symmetry, he used the following method to place the cattle. First, put a cow into the center grid of the ranch. If there is no such center grid, he will stop his work. Then he divided the ranch into four areas of the same size (these four areas are separated by the row and column of the cow in the center), and arranged the cattle into four areas in the above way. He kept repeating his division until there was no central grid or the ranch could no longer be subdivided. Look at the following example. If n = 7 and M = 15, John will place a cow in row 4 and column 8 and divide the ranch into four areas of $$3 / AST 7 $. Place a cow in the second row and the fourth column of each area of $$3 / AST 7 $, and divide each area into four areas of $$1 * 3 $. The process of placing is as follows (C stands for a cow)
![ Screen shot 2020-06-27 am 12.06.08. PNG] (~ / e6820d24-4e31-4faa-ba25-1f6a5dc55068. PNG)
This ranch has to house 21 cattle. For another example, if n = M = 5, John only needs to place one cow, because the four areas of $$2 / AST 2 $$after segmentation have no center grid. Help John determine how many cows he needs to put on his ranch.
###Input format:
A line of integers separated by two spaces: N and m
###Output format:
Number of cattle needed
###Input example:
```in
7 15
```
###Output example:
```out
twenty-one
```
answer:If there is no answer, please comment
![ Screen shot 2020-06-27 am 12.06.08. PNG] (~ / e6820d24-4e31-4faa-ba25-1f6a5dc55068. PNG)
This ranch has to house 21 cattle. For another example, if n = M = 5, John only needs to place one cow, because the four areas of $$2 / AST 2 $$after segmentation have no center grid. Help John determine how many cows he needs to put on his ranch.
###Input format:
A line of integers separated by two spaces: N and m
###Output format:
Number of cattle needed
###Input example:
```in
7 15
```
###Output example:
```out
twenty-one
```
answer:If there is no answer, please comment