Fyodor celebrates his birthday today. Before the guests arrive he decorates a cake with chocolate cream in a special way.
At the start the cake is a square split into 4 equal white square cells — a 2×2 grid.
Fyodor calls the following sequence of steps a fractalization:
Fyodor does not stop after one fractalization: he repeats it N times, even when he needs a microscope. The picture below shows the initial cake, the result after the first fractalization, and the cake after the fifth fractalization:

After N fractalizations the cake is a 2N+1×2N+1 grid of cells. Fyodor wants a program that quickly shows the pattern of a chosen rectangular part of the cake.
A single line contains five non-negative integers N, R1, R2, C1, C2:
Rows and columns are numbered from 0. The following restrictions hold: R1≤R2, C1≤C2; 0≤R2−R1<100 and 0≤C2−C1<100; 0≤R1,R2,C1,C2<2N+1.
Print R2−R1+1 lines, each containing C2−C1+1 characters. Each character corresponds to one cell: it is 1 if the cell is filled with chocolate and 0 otherwise.