A die maker's day starts early in the morning.
You are a die maker. You take orders from customers and make many kinds of dice every day. Today's order is a cubic die with the six numbers t1,t2,…,t6 written one per face. It does not matter which number goes on which face.
You make the die on a tool shaped like a flat board. You start with a die that has a zero on every face, resting on the tool. When you rotate the die by 90 degrees on the tool toward the north, the south, the east, or the west, the number on the face that newly touches the tool grows by one. By rotating the die toward suitable directions again and again, you can obtain the ordered die.
The final number on each face is decided by the sequence of directions you rotate the die toward. The string that represents that sequence of directions is called an operation sequence. Formally, an operation sequence consists of n characters, where n is the number of rotations made. If the i-th rotation is eastward, the i-th character of the operation sequence is E. In the same way it is W for westward, S for southward, and N for northward. For example, the operation sequence NWS represents three rotations, northward first, westward next, and southward last.
Given the six integers of a customer's order, compute an operation sequence that makes the ordered die. If two or more operation sequences are possible, compute the earliest one in dictionary order.
The input consists of multiple datasets. The number of datasets does not exceed 40. Each dataset has the following form.
t1 t2 t3 t4 t5 t6
p q
t1,t2,…,t6 are the integers of the customer's order. p and q are positive integers that specify the part of the operation sequence to print, and the output section gives the details.
Each dataset satisfies 0≤t1≤t2≤⋯≤t6≤5000 and 1≤p≤q≤t1+t2+⋯+t6. A line containing six zeros denotes the end of the input.
For each dataset, print on one line the characters from position p to position q, both included, of the operation sequence that is the earliest in dictionary order. If the ordered die cannot be made, print impossible.
Dictionary order is defined as follows. The empty string comes first. For two nonempty strings x=x1⋯xk and y=y1⋯yl, the string x precedes the string y in dictionary order if