# Dual lattice

# Dual lattice

Two infinite uniform rectangular lattice given cell size and **x _{1}**x

**y**

_{1}**x**x

_{2}**y**. 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

_{2}**D**in the horizontal and vertical

_{x}**D**. 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.

_{y}**Input**

In the first row are the numbers**x _{1}**,

**y**,

_{1}**x**,

_{2}**y**,

_{2}**D**,

_{x}**D**, separated by spaces.

_{y}**1** ≤ **x _{1}**,

**y**,

_{1}**x**,

_{2}**y**≤

_{2}**100**.

**0**≤

**D**<

_{x}**x**,

_{1}**0**≤

**D**<

_{y}**y**, все числа целые.

_{1}**Output**

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

20 20 12 10 2 0

4 20 60 100 120