Shooting Range
Vasya, a student, decided to spend his summer vacation in Sochi. During an evening walk along the promenade, he came across numerous attractions aimed at entertaining tourists and making money. These attractions were primarily shooting galleries, ranging from dart throwing at inflatable balloons to air gun shooting at tin cans. Prizes were awarded for accurate shots, though often their value was less than the cost of playing. Vasya observed that some attractions were rigged by the female promoters, such as slightly misaligning the sights on air rifles, while others were fair and even offered extra shots to players, particularly children. These fairer attractions attracted more visitors, and Vasya concluded that due to the higher volume of participants, these "honest" shooting galleries likely generated more profit. Inspired, Vasya decided to create his own computer-based shooting gallery that would be unquestionably fair to the players.
The target in Vasya's shooting gallery is a touch panel composed of squares, each measuring 1x1 cm, with N squares arranged vertically and M horizontally. When a plastic pellet from an air pistol strikes the panel, the connected computer records the impact point's coordinates as two non-negative real numbers, precise to tenths of a millimeter, with the origin at the top left corner of the panel. The computer displays the numbers of the prize cells that the player can open. These cell numbers correspond uniquely to the panel squares and are numbered sequentially from left to right, top to bottom, starting with 1 for the first cell and ending with N·M for the last. If the pellet hits the boundary between two cells, both cell numbers are displayed; if it hits exactly at the intersection of four cells, all four numbers are shown. Assist Vasya in implementing his idea by developing software for the shooting gallery.
Input
The first line contains 2 natural numbers N and M — the dimensions of the panel. The second line contains 2 non-negative real numbers with a precision of two decimal places (the first not exceeding M, the second not exceeding N) — the coordinates of the pellet hit horizontally and vertically, respectively.
Output
Output K lines, where K is the number of cells hit by the shooter, with one integer per line representing the cell number. Sort the cell numbers in ascending order.