favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

# Dual lattice

Two infinite uniform rectangular lattice given cell size and x1xy1x2xy2. Lattice are located on planes parallel to each other and coordinate axes so that the displacement of one of the nodes in the second grating with respect to the first node of Dx in the horizontal and vertical Dy. As a result, overlay, a new "composite" grid with smaller cells of different sizes. Want to display in ascending order of all the different areas of cells composite lattice.

Input

In the first row are the numbersx1, y1, x2, y2, Dx, Dy, separated by spaces.

1x1, y1, x2, y2100. 0Dx < x1, 0Dy < y1, все числа целые.

Output

The first line of output N - number of squares resulting in the following N lines - the area themselves.

Time limit 1 second
Memory limit 64 MiB
Input example #1
20 20 12 10 2 0

Output example #1
4
20
60
100
120