You are standing inside an ancient Measharan monument. It consists of an infinite number of regular hexagonal columns, arranged in a regular hexagonal grid. Each edge of each column is parallel to some line segment between the two nearest columns (like on the picture).
Given the distance between two columns and the edge length of each column , compute the number of columns that you can see.
Input consists of several cases. Each case consists of two positive integers: (distance between the centers of two columns), (the edge length of each column). You can assume that , and that .
After the last case the input contains a line containing 0 0.
Output the number of visible columns.
We have three consonants and two wovels, say, , , , , . According to our definition, there are 5 words of length 1 (all letters), and 25 words of length 2 (all possible pairs of letters). At length 3 the answer is 98 (out of possible words, consists of only wovels, which makes them illegible).
Input
2 1 7 2 5 1 0 0
Output
6 12 18