Fractal Cake#1238

Fractal Cake

1 second
64 megabytes
Very easy

Fyodor celebrates his birthday today. Before the guests arrive, he decorates a cake with chocolate cream in a special way. At first, the cake looks like a square divided into equal white square parts. Fyodor calls the following process fractalization: all the little squares of the cake are grouped into 2 \times 2 so that there are no ungrouped fragments. After that, each small square is divided into equal squares, so that a group of 2 \times 2 becomes a group of 4 \times 4. As the last action, the squares in the middle of each group are filled with chocolate. Fyodor does not stop at one fractalization and repeats it times, even when he has to use a microscope. The illustration below shows the initial cake, the result after the first fractalization, and the cake after the fifth fractalization:

Now Fyodor wants to cut pieces of cake with beautiful patterns for the guests, but it is difficult to assess the beauty of a piece when looking at the whole cake. Fyodor wants a program that will quickly show the pattern of a rectangular part of the cake.

Input

The input consists of a single line containing five non-negative integers: , R_1, R_2, C_1, C_2. is the number of fractalization iterations (N < 20), R_1 and R_2 are the first and last rows, C_1 and C_2 are the first and last columns of the selected part. The following constraints also apply:

R_1 \leq R_2, \quad C_1 \leq C_2; \quad 0 \leq R_2 - R_1,\, C_2 - C_1 < 100; \quad 0 \leq R_1,\, R_2,\, C_1,\, C_2 < 2^N.

Output

Output should contain R_2 - R_1 + 1 lines, each with C_2 - C_1 + 1 characters. Each symbol corresponds to a square and should be if it is filled with chocolate, and otherwise.

Examples

Example 1

Loading
Loading