QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#324900#2352. Maze with a HintZhangYiDeAC ✓12ms8108kbC++202.5kb2024-02-11 01:15:352024-02-11 01:15:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 7460kb

input:

view
5
###########
#.#.......#
#.###.#####
#.#.....#.#
#.#.###.#.#
#...#.....#
###.#######
#.........#
###.#######
#.........#
###########

output:

001000000111000000010100000101000000000100000101000000011000000110000000000100000110000000010000000101000000

input:

walk
001000000111000000010100000101000000000100000101000000011000000110000000000100000110000000010000000101000000
5
###
#..
###
#.#
...
###
#.#
...
#.#
#.#
..#
#.#
###
#..
#.#
#.#
...
###
###
...
#.#
###
...
###

output:

E
N
N
N
E
N
E
E

result:

ok 8 steps

Test #2:

score: 100
Accepted
time: 0ms
memory: 7548kb

input:

view
5
###########
#.........#
#.###.###.#
#.#.#.#.#.#
###.#.#.#.#
#.#.#...#.#
#.#.#.#####
#.....#.#.#
#.#.#.#.#.#
#.#.#.....#
###########

output:

100100000011000000010000000101000000111000000001000000011000000111000000110000000010100000100100000001000000111000000010000000

input:

walk
100100000011000000010000000101000000111000000001000000011000000111000000110000000010100000100100000001000000111000000010000000
5
#.#
#.#
###
#.#
#..
#.#
#.#
...
#.#
#.#
..#
#.#
#.#
#..
#.#
#.#
#.#
#.#
###
...
#.#
###
...
###

output:

N
E
E
N
N
N
E
E

result:

ok 8 steps

Test #3:

score: 100
Accepted
time: 0ms
memory: 7500kb

input:

view
5
###########
#.....#...#
###.###.###
#...#.#...#
#.#.#.###.#
#.#...#...#
###.#.###.#
#.#.#.#...#
#.#.###.#.#
#.......#.#
###########

output:

100100000001000000100100000010100000100100000010000000011000000100100000

input:

walk
100100000001000000100100000010100000100100000010000000011000000100100000
5
#.#
#..
###
#.#
...
###
###
...
###
#.#
..#
###
###
#..
#.#
#.#
..#
#.#
#.#
..#
#.#
###
..#
#.#
#.#
#..
###
###
#..
#.#

output:

E
E
E
N
E
N
N
W
N
E

result:

ok 10 steps

Test #4:

score: 100
Accepted
time: 0ms
memory: 7516kb

input:

view
5
###########
#.........#
#.###.###.#
#...#...#.#
#.###.#####
#.#.....#.#
#.#.###.#.#
#.#.#...#.#
###.#.#.#.#
#...#.#...#
###########

output:

011000000111000000010000000101000000001000000111000000110000000010100000

input:

walk
011000000111000000010000000101000000001000000111000000110000000010100000
5
###
#..
###
#.#
..#
###
#.#
#.#
#.#
###
#..
#.#
#.#
...
###
#.#
#..
#.#
###
...
#.#
###
...
###

output:

E
N
N
E
N
N
E
E

result:

ok 8 steps

Test #5:

score: 100
Accepted
time: 0ms
memory: 7460kb

input:

view
5
###########
#.........#
#.#######.#
#.#.....#.#
###.###.#.#
#.....#...#
#.#########
#.#...#.#.#
#.#.#.#.#.#
#...#.....#
###########

output:

010100000110000000010000000100100000011000000101000000

input:

walk
010100000110000000010000000100100000011000000101000000
5
#.#
#..
###
#.#
#.#
#.#
###
#..
#.#
#.#
...
###
###
#..
#.#
###
...
###
###
..#
#.#
#.#
#..
###
#.#
..#
###
#.#
#.#
#.#

output:

N
N
E
N
E
E
S
E
N
N

result:

ok 10 steps

Test #6:

score: 100
Accepted
time: 0ms
memory: 7436kb

input:

view
5
###########
#.....#.#.#
###.###.#.#
#.#...#...#
#.#.###.###
#.#...#...#
#.###.#.###
#.........#
###.#.#.###
#...#.#...#
###########

output:

111000000011000000000100000110000000100100000000100000100100000011000000000100000100100000011000000100100000110000000000100000

input:

walk
111000000011000000000100000110000000100100000000100000100100000011000000000100000100100000011000000100100000110000000000100000
5
###
#..
###
#.#
..#
###
###
...
#.#
#.#
...
#.#
#.#
...
#.#
#.#
#..
#.#
#.#
#..
#.#
#.#
..#
###

output:

E
N
E
E
N
N
E
N

result:

ok 8 steps

Test #7:

score: 100
Accepted
time: 2ms
memory: 7568kb

input:

view
5
###########
#.....#.#.#
#.###.#.#.#
#...#.#.#.#
#.###.#.#.#
#...#.....#
#####.###.#
#.......#.#
#.###.#####
#.#.......#
###########

output:

101000000011000000100100000011000000101000000000100000000100000111000000111000000010100000

input:

walk
101000000011000000100100000011000000101000000000100000000100000111000000111000000010100000
5
#.#
#.#
###
###
#..
#.#
###
...
###
#.#
...
#.#
#.#
#..
#.#
#.#
...
###
#.#
..#
#.#
#.#
#.#
#.#

output:

N
E
E
N
E
E
N
N

result:

ok 8 steps

Test #8:

score: 100
Accepted
time: 0ms
memory: 7520kb

input:

view
7
###############
#...#.......#.#
#.###.#######.#
#.#.....#.#.#.#
#.#.###.#.#.#.#
#.....#.#...#.#
#####.###.###.#
#.#...#.#.....#
#.#.#.#.#.###.#
#...#.....#...#
#######.#.###.#
#.......#.#...#
###.###.#.#####
#...#...#.....#
###############

output:

010100000111000000110100000010100000100100000011100000111000000010100000101100000000100000001100000110000000100100000000100000

input:

walk
010100000111000000110100000010100000100100000011100000111000000010100000101100000000100000001100000110000000100100000000100000
7
###
#..
###
#.#
..#
###
###
...
#.#
###
...
###
#.#
..#
#.#
#.#
...
#.#
#.#
..#
#.#
#.#
#..
#.#
###
...
###
#.#
..#
#.#
#.#
#.#
#.#
#.#
#.#
#.#

output:

E
N
E
E
N
E
N
E
E
N
N
N

result:

ok 12 steps

Test #9:

score: 100
Accepted
time: 0ms
memory: 7520kb

input:

view
7
###############
#.....#.......#
#.#.#######.###
#.#.#.....#...#
###.#.#.#.#.###
#.#...#.#.#...#
#.#######.#.###
#.#.#.#...#...#
#.#.#.#.#.#.###
#.....#.#.....#
#.###.#.#.#.#.#
#...#...#.#.#.#
#.###.#.#####.#
#...#.#.....#.#
###############

output:

111000000010100000101100000000100000010100000101100000100100000010000000010000000110100000011100000110000000101100000011000000001100000110000000110100000001100000110100000010100000100100000011000000100100000001000000000100000101100000011000000101100000001000000101100000

input:

walk
111000000010100000101100000000100000010100000101100000100100000010000000010000000110100000011100000110000000101100000011000000001100000110000000110100000001100000110100000010100000100100000011000000100100000001000000000100000101100000011000000101100000001000000101100000
7
#.#
#..
###
#.#
#..
#....

output:

N
N
E
E
S
E
N
N
E
S
E
N
N
N
N
E

result:

ok 16 steps

Test #10:

score: 100
Accepted
time: 0ms
memory: 7508kb

input:

view
10
#####################
#.....#.....#.......#
###.#.###.#.#.#.#####
#...#.#...#.#.#...#.#
###.#####.#####.###.#
#.....#.............#
###.###.#.###########
#.......#...#...#...#
#.#.###.#.###.#.###.#
#.#...#.#...#.#.#.#.#
###.###.###.#.#.#.#.#
#.....#.#.#...#.#...#
#.#######.#.###.###.#
#........

output:

111000000010100000111000000001000000101000000010100000110010000001000000011000000100010000100100000000100000000100000110000000010000000111100000111100000010000000001100000101000000010100000101000000001000000100010000

input:

walk
111000000010100000111000000001000000101000000010100000110010000001000000011000000100010000100100000000100000000100000110000000010000000111100000111100000010000000001100000101000000010100000101000000001000000100010000
10
#.#
#.#
###
###
#..
#.#
#.#
..#
#.#
###
#..
#.#
###
...
###
#.#
..#
###
###...

output:

N
E
N
E
E
N
W
W
W
N
E
N
N
E
E
N
E
E
E
E
N
N
E
E

result:

ok 24 steps

Test #11:

score: 100
Accepted
time: 2ms
memory: 7524kb

input:

view
10
#####################
#.#.......#.#...#...#
#.###.#####.#.###.###
#...#.....#.....#...#
###.#.#.#.#.#.#.#.#.#
#.....#.#.#.#.#.#.#.#
#####.#.#####.###.#.#
#...#.#.......#.#.#.#
###.#.#.#####.#.#.#.#
#.#...#...#.#.....#.#
#.#.###.###.###.#.###
#...#.#.......#.#.#.#
#####.#.###########.#
#........

output:

111000000000100000011100000100100000111100000011000000111000000011100000001100000100100000001000000110010000111100000001000000111100000000100000101100000011000000110100000010010000110100000000010000010100000100100000100100000000010000

input:

walk
111000000000100000011100000100100000111100000011000000111000000011100000001100000100100000001000000110010000111100000001000000111100000000100000101100000011000000110100000010010000110100000000010000010100000100100000100100000000010000
10
#.#
#.#
###
#.#
#.#
#.#
#.#
#.#
#.#
###
#..
#.#
###
...
#...

output:

N
N
N
E
E
E
N
N
N
E
E
E
S
E
E
N
N
N
N
E

result:

ok 20 steps

Test #12:

score: 100
Accepted
time: 0ms
memory: 7500kb

input:

view
14
#############################
#.....#...........#.#...#.#.#
#####.###.#.###.###.###.#.#.#
#...#.....#...#.#...#...#.#.#
#.#.#.#.#.#####.#.#.###.#.#.#
#.#...#.#.#.#.#...#.#.....#.#
#.#########.#.#.#.###.#.#.#.#
#...#...#.#.#.#.#.#...#.#.#.#
#.#####.#.#.#.###########.#.#
#.............#.....#....

output:

100100000010000000110010000011010000010010000111100000000010000110000000100100000010110000011100000110100000001100000111010000110100000000100000110100000000010000001110000110000000110100000010110000010100000101100000001010000110000000000010000100010000011100000100010000100100000001100000100100000000...

input:

walk
1001000000100000001100100000110100000100100001111000000000100001100000001001000000101100000111000001101000000011000001110100001101000000001000001101000000000100000011100001100000001101000000101100000101000001011000000010100001100000000000100001000100000111000001000100001001000000011000001001000...

output:

N
N
N
N
N
N
N
N
N
E
E
E
E
E
S
S
E
N
E
S
S
S
E
E
E
N
N
N
N
E
E
E
N
N
N
N

result:

ok 36 steps

Test #13:

score: 100
Accepted
time: 3ms
memory: 7520kb

input:

view
14
#############################
#.#.....#.#.#...#...#.....#.#
#.#.#####.#.#.#.#.#.#.#####.#
#.......#.#.#.#...#.......#.#
###.#.###.#.#########.#.#.#.#
#.#.#.......#...#.#...#.#...#
#.#.#######.###.#.###.#####.#
#.........#.#.............#.#
#.#####.###.#.#####.#.###.###
#.#...#.#.....#.....#....

output:

001100000100100000000110000100100000001100000101000000001000000101010000000100000111010000001010000100100000110100000001100000010110000101000000100100000001010000000100000110000000110000000011010000110000000001000000110100000011000000111000000000010000101000000001100000101000000010100000001000000110...

input:

walk
0011000001001000000001100001001000000011000001010000000010000001010100000001000001110100000010100001001000001101000000011000000101100001010000001001000000010100000001000001100000001100000000110100001100000000010000001101000000110000001110000000000100001010000000011000001010000000101000000010000...

output:

E
E
N
E
N
N
N
W
N
N
N
N
E
N
N
W
W
N
N
E
S
E
E
E
S
S
E
N
E
E
E
E
N
N
E
E
S
E
N
N

result:

ok 40 steps

Test #14:

score: 100
Accepted
time: 0ms
memory: 7560kb

input:

view
21
###########################################
#.#.#.....#...#.#...#.#...#...#...#...#...#
#.#.#.#.###.###.###.#.###.#.#.#.###.###.#.#
#.....#.#...............#.#.#.#...#.#.#.#.#
#######.#############.#.#.#.#.#.#.#.#.#.###
#...#...#...#.....#...#...#.#...#.......#.#
#.#.#.#####.###.#####.#####....

output:

111110000001110000000010000100110000001001000110110000010110000110001000011000000101001000000101000110100000101110000010001000000001000110110000110100000000001000111010000011110000111100000010110000101001000011010000100010000011110000100101000010100000000101000110000000001001000111100000110001000011...

input:

walk
1111100000011100000000100001001100000010010001101100000101100001100010000110000001010010000001010001101000001011100000100010000000010001101100001101000000000010001110100000111100001111000000101100001010010000110100001000100000111100001001010000101000000001010001100000000010010001111000001100010...

output:

E
N
E
E
E
N
N
E
N
E
S
S
E
E
N
E
E
E
E
N
E
N
E
N
E
N
E
N
W
W
N
W
N
N
N
W
N
E
E
E
N
N
E
S
E
E
N
E
E
N
N
W
W
N
E
N
N
E

result:

ok 58 steps

Test #15:

score: 100
Accepted
time: 1ms
memory: 7620kb

input:

view
21
###########################################
#.#.#.#.......#...#.....#.......#...#.....#
#.#.#.#######.#.#######.#.#####.#.#####.###
#.#...#.#...#.#...........#.....#.#.......#
#.#.###.###.#.###.#.#####.#.#.###.###.#####
#.......#...#.#...#...#...#.#.#.#.#.#.....#
###.#####.#.#.#.#####.###.#....

output:

101110000011010000001010000110001000111110000000110000111110000000010000110100000000001000110001000000100000111010000010110000000001000111000000111000000010001000110001000000010000110001000011100000010001000110000000100001000011100000010101000110000000011110000110110000001110000110110000101010000010...

input:

walk
1011100000110100000010100001100010001111100000001100001111100000000100001101000000000010001100010000001000001110100000101100000000010001110000001110000000100010001100010000000100001100010000111000000100010001100000001000010000111000000101010001100000000111100001101100000011100001101100001010100...

output:

N
N
E
N
N
N
E
S
E
E
E
E
E
N
E
E
N
E
E
E
N
N
N
E
N
E
E
N
E
N
N
W
W
S
W
N
N
N
N
E
E
N
E
E
E
E
N
W
N
E
N
E

result:

ok 52 steps

Test #16:

score: 100
Accepted
time: 0ms
memory: 7512kb

input:

view
33
###################################################################
#.....#.....#...#.......#.......#.#.........#...#.#...#.#.#.......#
#.#.#######.#.###.###.###.#####.#.###.#.#.#####.#.#.###.#.#.#.#####
#.#.........#...#...#.....#...#...#.#.#.#.#...........#.....#.....#
###.#######.###.####...

output:

101101000000101000111001000000111000011101000111100000111011000010110000101001000001011000011010000110111000011101000111000000111000000010011000000001000111111000010100000100011000100010000001111000011011000101100000111101000000011000111011000011010000000100000101111000001111000111000000101011000000...

input:

walk
1011010000001010001110010000001110000111010001111000001110110000101100001010010000010110000110100001101110000111010001110000001110000000100110000000010001111110000101000001000110001000100000011110000110110001011000001111010000000110001110110000110100000001000001011110000011110001110000001010110...

output:

E
N
N
E
N
N
N
E
E
E
N
N
N
W
N
N
W
N
E
N
E
S
E
S
S
S
S
E
E
E
E
S
E
E
N
E
E
E
E
E
E
E
N
W
N
E
N
E
E
N
E
E
S
E
N
E
N
N
N
E
E
N
E
N
N
E
E
N
W
N
N
W
N
E
N
N
N
W
N
S
W
N
W
W
W
N
N
N
N
E
S
S
S
N
E
S
N
N
N
E
E
E
N
W
N
E
N
E
E
E

result:

ok 110 steps

Test #17:

score: 100
Accepted
time: 3ms
memory: 7536kb

input:

view
33
###################################################################
#...#...#.....#.#.......#...#.#.#...#...#.....#.#.........#.....#.#
###.###.###.###.#.#######.#.#.#.#.#.#.#####.#.#.#.#####.#.###.#.#.#
#.......#.....#.#...#.#...#.......#.#.#.....#...#...#.#.#.....#.#.#
###.###.###.###.#.##...

output:

100000100001010000011100000101001000110110000001001000100110000000110000010100000111011000001101000110010000000011000111010000100100000001011000111110000011110000011110000101010000110111000010100000001011000111010000011001000100010000011010000110001000101100000001011000101000000011111000011111000110...

input:

walk
1000001000010100000111000001010010001101100000010010001001100000001100000101000001110110000011010001100100000000110001110100001001000000010110001111100000111100000111100001010100001101110000101000000010110001110100000110010001000100000110100001100010001011000000010110001010000000111110000111110...

output:

N
N
N
E
N
N
E
N
E
E
S
W
S
E
E
E
E
S
S
E
S
E
N
N
N
E
N
N
E
N
E
N
W
W
N
N
N
W
N
W
N
N
E
E
E
N
N
W
N
N
N
N
E
S
S
E
E
E
E
E
N
W
N
E
E
E
E
N
W
W
N
E
N
N
N
N
E
N
E
N
E
S
E
N
E
S
E
E
N
E
N
N
W
N
W
N
E
E
E
E
S
E
E
N
E
S
S
E
N
N

result:

ok 110 steps

Test #18:

score: 100
Accepted
time: 0ms
memory: 7688kb

input:

view
74
#####################################################################################################################################################
#...#.......#.......#.......#...#.....#...............#.....#.#.#.....#.#.#...#.....#...#...#...#.....#.#.#.#.......#.....#.#.#...#.#...#........

output:

110100100011010100001100100100010100000101000110010100111110000001101100011111000110110100110000010011010000000011100100011000000011000111010100010111100110011000101001000011111100000100010110110000011100000101000010000001000101100010010010000110111100010100010101101000101111100010110000011010100110...

input:

walk
1101001000110101000011001001000101000001010001100101001111100000011011000111110001101101001100000100110100000000111001000110000000110001110101000101111001100110001010010000111111000001000101101100000111000001010000100000010001011000100100100001101111000101000101011010001011111000101100000110101...

output:

N
E
E
S
N
N
E
E
E
E
N
E
N
W
N
W
N
E
N
E
N
E
E
S
E
N
E
S
S
N
N
N
N
N
E
S
E
S
S
E
S
W
S
E
S
N
E
N
E
E
S
S
N
N
E
E
S
S
W
N
S
E
S
E
W
N
N
E
N
S
S
E
N
N
N
W
N
N
W
S
N
E
N
E
N
S
S
E
W
N
W
W
W
E
E
N
N
N
N
S
S
E
E
S
S
E
N
N
E
N
E
N
W
W
S
W
E
N
E
E
N
N
W
N
N
N
S
E
E
E
N
W
W
E
E
E
N
W
W
N
S
E
N
S
E
E
S
S
E
E
...

result:

ok 456 steps

Test #19:

score: 100
Accepted
time: 0ms
memory: 7644kb

input:

view
74
#####################################################################################################################################################
#.#...#.#...#.#.......#...#.....#.........#.#.....#.#.#.....#...........#.#.....#...#.#.......#.....#...#...#...#...#.....#.............#.#......

output:

100100100011110000000110100100001100110111000011011100001000010101100000100101100000000100100010100000000100110111100010110100011101100111100100101000100010100010000110100101000100010100100101110000101100100011110000101100100010000010010011100100100000101111000010011100001101100100010100011110100100...

input:

walk
1001001000111100000001101001000011001101110000110111000010000101011000001001011000000001001000101000000001001101111000101101000111011001111001001010001000101000100001101001010001000101001001011100001011001000111100001011001000100000100100111001001000001011110000100111000011011001000101000111101...

output:

E
E
N
W
W
N
E
W
S
E
E
E
N
W
N
W
E
S
E
E
E
E
E
N
N
N
W
W
W
W
N
N
N
N
S
S
S
E
N
N
E
N
N
W
S
N
N
W
W
E
N
N
W
N
N
N
W
E
E
N
W
N
N
N
E
W
N
E
N
N
W
N
N
N
W
W
N
N
S
S
E
E
N
W
E
E
N
W
W
N
W
N
N
S
S
E
S
E
N
N
N
S
W
E
E
N
N
N
W
W
S
S
N
W
E
N
E
N
E
N
N
N
S
E
E
N
E
E
S
S
S
S
N
E
E
E
W
S
E
E
N
S
S
N
E
S
E
W
N
N
...

result:

ok 704 steps

Test #20:

score: 100
Accepted
time: 3ms
memory: 7776kb

input:

view
71
###############################################################################################################################################
#.....#...#...#.....#.........#.#.#...#.#.......#...#...#.....#...#...........#.....#...#...#.....#...#.#.....#.#...#.......#.#...#.#...#...#.#
#.##...

output:

111000100011011000001010100101100100011100100101101000111100000011101100010001000110101100100000010011010000010001000110111100111000100010000010011100100111001100110001100001001100011100100110101100101001100011101000000000010101110000011101100100001000010001100111110100101110100011101100110100100011...

input:

walk
1110001000110110000010101001011001000111001001011010001111000000111011000100010001101011001000000100110100000100010001101111001110001000100000100111001001110011001100011000010011000111001001101011001010011000111010000000000101011100000111011001000010000100011001111101001011101000111011001101001...

output:

E
N
N
N
W
N
N
N
N
N
S
E
S
E
W
N
E
E
E
N
E
W
W
N
S
E
N
E
W
N
W
N
E
W
W
W
N
W
N
N
N
S
S
E
E
E
E
S
W
E
N
N
E
S
E
E
S
S
S
S
S
S
S
E
W
N
N
N
E
S
S
N
E
E
N
N
S
W
E
S
S
W
E
E
E
S
W
E
E
N
N
W
N
N
N
S
W
N
W
E
S
E
E
E
S
E
E
W
N
N
N
N
N
W
N
S
W
N
S
E
E
N
E
N
E
S
N
N
E
N
N
N
N
E
E
E
E
N
N
N
E
W
N
N
N
E
N
N
W
N
...

result:

ok 570 steps

Test #21:

score: 100
Accepted
time: 0ms
memory: 7704kb

input:

view
71
###############################################################################################################################################
#...........#...#...#.#.....#...#...#.#.#.#.....#.#.#.......#.........#...#.....#...#.....#...#...#.........#...#...#.#.#.........#.#.....#.#.#
#.##...

output:

110110100000100100111111000000110000000011100101100000101000100001000100010100000100000010011100100100011000010100100100011100100000100000011100011111000101011100111000100001110100110000100011001000000111100101100000110010100010101100001110000110000010001101000101111100001000010101010000100101000001...

input:

walk
1101101000001001001111110000001100000000111001011000001010001000010001000101000001000000100111001001000110000101001001000111001000001000000111000111110001010111001110001000011101001100001000110010000001111001011000001100101000101011000011100001100000100011010001011111000010000101010100001001010...

output:

E
N
W
N
E
W
N
E
E
E
E
N
N
S
E
E
E
N
S
W
W
S
E
E
E
N
E
N
N
N
E
N
W
N
N
E
S
E
W
N
W
S
W
W
N
E
W
W
E
N
W
N
N
W
N
N
N
E
N
W
N
E
N
N
W
S
N
W
N
S
W
S
W
S
S
W
N
N
N
N
N
N
N
E
N
S
E
E
N
N
N
W
E
E
E
N
N
N
N
E
S
E
N
N
W
E
E
S
N
E
W
W
N
N
S
W
N
N
E
W
W
E
S
W
W
N
N
N
E
S
E
E
N
N
N
W
E
S
E
N
E
S
E
W
N
E
E
E
S
W
...

result:

ok 496 steps

Test #22:

score: 100
Accepted
time: 0ms
memory: 7764kb

input:

view
107
#######################################################################################################################################################################################################################
#.....#.#.#...#.#.#.#.#.......#...#.#.....#.......#...#.#.#.......#.....#.....

output:

010000010101010100100010100001111000001110000110101010100010100010111000111110010000100100110000110010100000011000100110001100000110010110110000001110000111110010110011000001011100111001010000011000111111000011010010101110010001010100110010100001010100100110010010111000001111100100100100000111000100...

input:

walk
0100000101010101001000101000011110000011100001101010101000101000101110001111100100001001001100001100101000000110001001100011000001100101101100000011100001111100101100110000010111001110010100000110001111110000110100101011100100010101001100101000010101001001100100101110000011111001001001000001110...

output:

E
E
N
W
W
N
S
E
N
N
N
N
S
S
W
N
N
S
S
E
E
N
E
E
W
S
E
W
N
N
N
N
S
S
W
N
N
N
N
N
E
N
W
W
E
E
S
E
E
N
W
N
N
N
W
N
N
W
W
N
W
N
N
N
N
S
S
E
E
E
S
S
N
N
N
N
N
N
E
E
E
E
S
N
N
N
W
E
N
W
N
N
W
S
N
E
E
S
N
E
E
N
E
E
E
N
E
S
E
S
N
W
S
S
N
N
N
N
N
N
W
E
S
E
S
E
N
N
W
N
N
E
W
N
E
W
S
S
E
W
S
E
E
W
S
S
E
N
E
E
...

result:

ok 902 steps

Test #23:

score: 100
Accepted
time: 0ms
memory: 7752kb

input:

view
107
#######################################################################################################################################################################################################################
#.....#.....#.#.#.....#.....#...........#.....#.....#.....#.#.#.........#.....

output:

110001010001111000100101010011001010100010000011001010100011000001110010000000010101101010011111100101010010000100100111010010101101010011001100000010010101111010100001000010100110001010100100110010010111010111101100110001010011000010000101010101000010100101010010111100100011100001010010110101010010...

input:

walk
1100010100011110001001010100110010101000100000110010101000110000011100100000000101011010100111111001010100100001001001110100101011010100110011000000100101011110101000010000101001100010101001001100100101110101111011001100010100110000100001010101010000101001010100101111001000111000010100101101010...

output:

N
E
N
N
E
N
E
E
S
N
W
S
S
S
S
W
N
S
W
E
E
E
E
W
N
E
E
N
N
N
N
E
E
S
N
W
W
N
W
W
S
W
E
N
E
E
E
N
N
S
S
E
E
N
N
N
S
S
E
N
N
S
E
W
S
S
S
W
E
E
S
W
W
E
E
N
W
N
N
E
S
E
S
N
N
N
S
S
E
N
N
E
E
S
E
E
E
N
W
N
W
N
N
S
S
E
E
N
E
S
N
W
W
N
E
W
N
N
N
W
W
E
E
N
W
W
N
S
E
E
E
N
S
E
N
N
N
S
E
N
E
S
S
E
S
E
E
W
W
N
...

result:

ok 1042 steps

Test #24:

score: 100
Accepted
time: 3ms
memory: 7960kb

input:

view
144
#################################################################################################################################################################################################################################################################################################
#...

output:

111000001000011000100011000010010010001001110111011000001101000110011000110001000001101010101000100000111000001001100111110000101001000000010100000010100111001000110110000010011110110001000000010110001001010110101000110011000010100010000111010111110000011110000100010110111000110001011000001010001110...

input:

walk
1110000010000110001000110000100100100010011101110110000011010001100110001100010000011010101010001000001110000010011001111100001010010000000101000000101001110010001101100000100111101100010000000101100010010101101010001100110000101000100001110101111100000111100001000101101110001100010110000010100...

output:

E
E
N
E
N
E
E
S
N
W
N
E
W
S
S
S
W
E
E
E
N
E
E
N
E
E
E
N
W
E
S
E
E
W
N
E
W
S
S
S
W
E
E
E
E
E
N
E
S
E
N
E
E
E
S
W
E
N
W
W
W
S
E
W
W
N
N
N
S
S
W
W
W
N
E
W
N
E
E
S
N
N
W
E
E
N
W
E
E
S
S
N
E
N
E
N
N
E
N
N
N
S
W
W
N
E
N
E
N
E
N
W
E
E
E
N
W
W
E
E
N
E
E
S
E
W
N
E
N
W
E
E
N
E
S
E
W
N
E
W
W
W
W
E
N
N
N
S
W
N
...

result:

ok 1776 steps

Test #25:

score: 100
Accepted
time: 3ms
memory: 7868kb

input:

view
144
#################################################################################################################################################################################################################################################################################################
#...

output:

011010010101010010100001110000011010110111100000001110111101110001010010100011110000101010111101010010001010111101000000111110110101010000011010101101110001001000001101000111110110110111000010101110010000110110000110110111110011100100011101100110101110000101010110110010111000010000111010110001110000...

input:

walk
0110100101010100101000011100000110101101111000000011101111011100010100101000111100001010101111010100100010101111010000001111101101010100000110101011011100010010000011010001111101101101110000101011100100001101100001101101111100111001000111011001101011100001010101101100101110000100001110101100011...

output:

N
E
N
W
E
E
S
E
S
W
W
E
E
E
N
E
N
N
E
S
N
N
N
N
E
S
E
N
S
E
E
S
W
E
E
N
S
W
N
W
W
W
N
N
N
E
S
N
E
E
N
N
E
E
E
N
N
N
W
S
S
W
E
N
N
E
S
E
W
S
S
E
N
E
N
E
N
N
E
S
N
W
S
S
W
S
W
S
W
W
W
S
S
E
E
E
E
S
S
E
E
S
E
N
E
S
E
E
E
S
W
E
N
N
N
E
N
N
E
W
S
W
E
S
E
N
S
S
W
S
N
E
N
E
E
S
W
E
E
N
S
S
E
N
S
S
S
W
E
S
...

result:

ok 1886 steps

Test #26:

score: 100
Accepted
time: 0ms
memory: 8000kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010001101100010100000000100111011001010111110100011010100001101010101001111001100000100101110010101010001001000100101110101101001111110100011010000000101100011010100110100011010101101101101000011000000011101100101101000110000100111101001010101110101101110100001000100011011101101111011001110011110000...

input:

walk
0100011011000101000000001001110110010101111101000110101000011010101010011110011000001001011100101010100010010001001011101011010011111101000110100000001011000110101001101000110101011011011010000110000000111011001011010001100001001111010010101011101011011101000010001000110111011011110110011100111...

output:

E
E
N
N
N
S
S
W
N
N
N
W
S
N
N
S
E
E
E
N
E
S
E
W
S
S
S
S
E
N
N
N
S
S
E
W
S
E
W
W
N
N
N
W
S
S
N
N
E
N
N
N
N
W
N
N
E
S
N
E
N
W
N
N
S
E
W
S
E
E
E
N
N
N
E
W
W
S
W
N
W
W
W
E
S
S
N
W
S
W
N
W
S
N
E
N
W
E
N
W
N
S
E
S
S
S
E
S
E
W
S
N
N
N
E
N
E
E
S
E
S
N
N
N
E
E
N
N
E
E
E
N
W
N
E
N
E
N
N
E
N
S
S
S
E
E
W
S
S
E
...

result:

ok 4274 steps

Test #27:

score: 100
Accepted
time: 0ms
memory: 8096kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

011110110110111100000001010110011100001011100100110110001110010101100001111000110000101100100001010000001010000100100111010101001000101111111000111010101011111000000001010101110001101001010010111110111010010001001110111100010011111001011000011101010000110000101001111100000001000111110101001110000100...

input:

walk
0111101101101111000000010101100111000010111001001101100011100101011000011110001100001011001000010100000010100001001001110101010010001011111110001110101010111110000000010101011100011010010100101111101110100100010011101111000100111110010110000111010100001100001010011111000000010001111101010011100...

output:

E
N
S
E
E
E
W
N
E
E
E
E
W
S
E
E
E
N
N
N
E
E
W
N
E
W
N
N
N
E
E
N
E
E
N
N
N
S
W
S
W
W
E
E
N
W
N
E
N
W
W
N
N
S
E
W
W
W
S
N
N
E
N
E
E
N
N
N
S
E
E
E
S
S
E
E
N
W
E
N
S
S
W
S
W
W
E
E
N
W
N
N
W
N
W
N
N
N
N
E
E
E
E
N
E
S
N
E
W
W
N
E
E
N
E
N
S
E
N
N
N
N
W
N
E
N
N
E
S
N
N
E
N
W
N
N
N
W
E
E
E
E
E
N
W
E
S
E
E
E
...

result:

ok 2910 steps

Test #28:

score: 100
Accepted
time: 0ms
memory: 8032kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001010100100111110000101101111000100000111100110101100111000010001011010111000010000110100111010010011001000011111100110111010101100110001101000010001101110001000111100001010101000111101101011101000001011010101101000101110000000000101110111110010011000111101100001111010110100110011110000000101000111...

input:

walk
0010101001001111100001011011110001000001111001101011001110000100010110101110000100001101001110100100110010000111111001101110101011001100011010000100011011100010001111000010101010001111011010111010000010110101011010001011100000000001011101111100100110001111011000011110101101001100111100000001010...

output:

N
N
N
S
E
E
N
E
E
S
E
N
N
S
S
W
S
W
E
S
E
N
E
N
S
W
S
W
W
W
W
E
E
E
N
N
N
W
S
N
W
N
W
N
W
N
S
S
N
E
S
S
N
E
N
N
N
E
N
E
E
S
N
N
W
E
S
W
W
N
S
S
E
W
W
N
N
S
S
S
S
E
N
E
E
S
N
E
N
S
E
N
N
W
E
S
S
S
E
N
E
N
S
S
E
N
E
S
S
E
S
N
E
E
W
S
N
N
W
E
E
N
N
E
N
N
N
W
N
N
W
N
W
N
N
W
N
N
S
E
N
E
N
E
W
S
E
W
W
S
...

result:

ok 2956 steps

Test #29:

score: 100
Accepted
time: 3ms
memory: 8032kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100111110011000010101010100000000001101010110001010100010001000100011101001000010100111010101000110001101100000011000111100100010001110100110100110000100000011001010111000110111000110111001000101100100110100011111000111100000010101110101001101000001000101101000010000100001010010111011010110000101010...

input:

walk
1001111100110000101010101000000000011010101100010101000100010001000111010010000101001110101010001100011011000000110001111001000100011101001101001100001000000110010101110001101110001101110010001011001001101000111110001111000000101011101010011010000010001011010000100001000010100101110110101100001...

output:

N
E
N
N
W
S
N
E
N
W
N
N
E
N
E
E
N
E
N
E
E
W
S
E
E
E
N
W
N
W
N
N
S
S
W
N
N
S
S
E
E
N
E
W
N
S
S
S
E
E
S
N
W
S
W
S
E
W
S
W
N
S
E
S
S
W
W
S
E
W
N
W
E
E
N
W
E
S
E
S
S
W
S
S
E
E
N
E
E
N
E
W
N
W
E
S
W
W
N
S
E
E
S
W
S
E
W
N
W
S
W
W
W
W
E
E
N
W
N
W
S
N
N
S
W
E
E
S
E
N
E
S
N
N
N
N
E
S
E
E
E
N
N
W
S
W
E
N
E
N
...

result:

ok 5778 steps

Test #30:

score: 100
Accepted
time: 7ms
memory: 8088kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110011000011001101100000011010100100101100100001011001011000010100010001001000101110101010101100101011100001010000010111111000100011000011000100010001000101101101111011000001101000110101110000111010111111100000000110101011110011101110000011100100011010100101101000100010110000010000101000011111100100...

input:

walk
1100110000110011011000000110101001001011001000010110010110000101000100010010001011101010101011001010111000010100000101111110001000110000110001000100010001011011011110110000011010001101011100001110101111111000000001101010111100111011100000111001000110101001011010001000101100000100001010000111111...

output:

E
N
E
S
E
W
N
N
E
S
N
W
N
N
E
S
E
W
N
E
E
S
E
W
S
E
W
S
E
E
E
W
S
E
E
E
E
E
W
W
W
W
W
N
W
W
W
S
E
E
W
W
N
N
S
E
N
N
N
N
E
E
E
W
W
S
E
W
N
N
N
E
S
E
E
S
N
E
E
E
S
W
W
S
S
N
W
E
N
E
S
E
E
N
S
S
E
E
S
W
S
S
N
N
E
N
E
S
E
N
E
N
N
N
E
E
S
E
N
N
W
N
E
W
N
N
W
S
N
E
N
N
N
W
E
E
S
N
N
N
W
W
N
N
W
S
S
S
N
N
...

result:

ok 5648 steps

Test #31:

score: 100
Accepted
time: 0ms
memory: 7984kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101101101011010100101111100001100101011101110110000101000011001110100101100000101010111110000101001111001001100111101000101110000101110100101101101100010010101101011100001100011101000000011101111010010110100111001101111011101000101100000100011111000000110001101011111110000111010110111001001000001101...

input:

walk
1011011010110101001011111000011001010111011101100001010000110011101001011000001010101111100001010011110010011001111010001011100001011101001011011011000100101011010111000011000111010000000111011110100101101001110011011110111010001011000001000111110000001100011010111111100001110101101110010010000...

output:

E
E
E
N
E
E
S
E
N
N
E
N
W
W
W
W
W
E
E
S
E
W
W
W
W
W
N
N
E
W
S
E
W
S
E
S
W
E
N
E
E
E
N
N
W
N
E
E
S
E
E
N
E
E
S
S
W
S
S
N
N
N
S
E
E
N
S
W
N
N
N
E
N
S
E
N
N
N
N
N
S
W
S
S
W
S
N
E
N
N
W
E
E
S
S
E
N
S
S
E
S
N
E
E
S
E
E
N
N
N
N
S
W
S
S
N
N
E
E
S
E
E
N
N
N
N
E
S
N
W
W
N
E
E
E
N
W
W
E
E
S
S
S
N
E
E
N
N
E
S
...

result:

ok 3126 steps

Test #32:

score: 100
Accepted
time: 12ms
memory: 7964kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

011011000101111101000110101111100110110110010000001001001011100111111001100000101011000100110000001000110100110101110001100010011101101101110000001001101110101010000101001111010100110001110000110100010001110101111110001001110100110100001100100111101101000001001111110110001000001100010010110111001010...

input:

walk
0110110001011111010001101011111001101101100100000010010010111001111110011000001010110001001100000010001101001101011100011000100111011011011100000010011011101010100001010011110101001100011100001101000100011101011111100010011101001101000011001001111011010000010011111101100010000011000100101101110...

output:

E
N
N
N
W
N
S
E
N
E
N
S
S
E
W
N
E
E
W
N
N
E
E
W
S
N
W
W
N
E
E
W
N
N
E
E
S
S
N
E
N
E
W
S
E
W
W
N
N
E
E
N
E
N
N
E
N
N
N
S
E
N
E
N
N
N
E
W
S
W
N
S
W
N
S
E
E
S
E
S
N
E
N
N
N
W
W
N
E
E
W
W
N
N
N
W
N
S
E
N
N
N
N
E
S
E
W
N
E
E
S
N
W
W
W
W
N
N
E
E
W
S
N
W
W
S
S
S
E
W
N
N
W
W
S
S
E
S
S
S
N
N
E
S
S
S
S
W
N
S
...

result:

ok 3040 steps

Test #33:

score: 100
Accepted
time: 4ms
memory: 8028kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100010101011000100110110010000100001111000001010101001000111110111000110111101001011011100100001101010000100101100101010000110010001100101011101101100001001011110100001000011111101010101101100101000100100001000011010111110101001110010011011101111111010011000110101101101100010110010111101001001110110...

input:

walk
1000101010110001001101100100001000011110000010101010010001111101110001101111010010110111001000011010100001001011001010100001100100011001010111011011000010010111101000010000111111010101011011001010001001000010000110101111101010011100100110111011111110100110001101011011011000101100101111010010011...

output:

E
N
E
W
S
E
W
W
N
N
E
E
E
N
E
W
N
E
N
E
E
N
E
E
S
E
W
N
E
E
N
W
E
E
S
N
E
W
W
S
S
E
S
S
W
N
W
E
S
E
S
S
S
E
W
N
N
W
E
N
N
E
S
S
S
E
S
E
N
N
S
E
S
N
W
S
W
N
W
N
N
E
S
N
E
W
W
N
W
N
E
N
S
E
N
N
N
N
N
S
W
E
S
S
E
S
E
N
N
W
N
N
N
S
S
S
E
N
E
N
E
W
N
N
S
W
N
W
E
N
N
S
W
N
N
E
E
S
N
W
W
S
W
N
N
N
E
N
N
E
...

result:

ok 4024 steps

Test #34:

score: 100
Accepted
time: 10ms
memory: 8004kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101101010000100001110000010000000110011011101111110000001000010110000101010001010110111110000111000101000101110111010000110100101011010011101010110001000000011101110111010010011000111000010010111001011011010110000010100001001010110000000111001110010000100101000011010101010010010100110100011011010100...

input:

walk
1011010100001000011100000100000001100110111011111100000010000101100001010100010101101111100001110001010001011101110100001101001010110100111010101100010000000111011101110100100110001110000100101110010110110101100000101000010010101100000001110011100100001001010000110101010100100101001101000110110...

output:

E
N
W
E
S
E
E
E
W
W
N
E
W
N
N
S
E
N
E
N
S
E
W
W
N
N
W
W
N
E
W
W
N
N
N
E
S
N
E
S
N
W
W
N
E
W
S
S
S
E
E
W
W
S
E
S
S
S
S
N
W
S
N
N
N
S
S
E
N
N
E
E
N
N
E
E
S
W
S
E
S
N
E
N
N
E
E
N
W
W
E
E
S
S
E
W
S
W
N
S
E
E
W
N
N
E
E
S
E
N
S
E
E
E
N
N
N
S
E
S
S
N
N
N
S
W
S
W
N
N
W
W
S
W
N
S
W
N
N
W
W
N
S
W
S
N
E
E
E
S
...

result:

ok 3900 steps

Test #35:

score: 100
Accepted
time: 8ms
memory: 7920kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100001000000011001011101110111001100010011100101110010110110101001100100011101010111110110100110110010000110011101101101110000011000001111111100101100100011001101001111001100110100001001000111000001011010000111110110011010101101100100111011000000011101010001001101100100010001000101110101001111110100...

input:

walk
1000010000000110010111011101110011000100111001011100101101101010011001000111010101111101101001101100100001100111011011011100000110000011111111001011001000110011010011110011001101000010010001110000010110100001111101100110101011011001001110110000000111010100010011011001000100010001011101010011111...

output:

E
N
N
N
E
W
W
E
N
E
W
W
E
N
E
N
E
W
S
E
W
W
N
S
W
N
N
S
S
E
S
S
S
W
E
S
E
S
E
N
N
W
E
E
N
N
E
E
S
S
W
E
N
W
E
E
W
N
W
W
N
E
N
N
E
S
S
E
W
N
E
N
E
E
N
N
N
N
N
N
N
E
S
N
E
N
S
S
E
N
N
S
S
W
N
W
W
S
S
W
N
W
S
N
W
N
N
W
N
N
W
E
S
S
E
N
N
N
W
E
S
S
E
N
E
E
E
N
E
N
N
N
S
E
N
S
S
E
W
N
E
W
W
S
W
W
N
S
E
N
...

result:

ok 3722 steps

Test #36:

score: 100
Accepted
time: 3ms
memory: 8004kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100100110010000001110110010000111010010010000100010101011010010110110101111110010000010110111001001011001000001110110111100010111001001010110000100010010001100001010000110110101010100001001000000010110100110000101010111000101001111100011111100101110101000111000111110101001001001111110010110100110000...

input:

walk
1001001100100000011101100100001110100100100001000101010110100101101101011111100100000101101110010010110010000011101101111000101110010010101100001000100100011000010100001101101010101000010010000000101101001100001010101110001010011111000111111001011101010001110001111101010010010011111100101101001...

output:

N
N
N
E
N
W
N
E
E
E
S
E
S
W
E
S
S
E
E
E
S
N
E
S
N
W
W
W
N
S
S
E
W
N
W
S
W
E
N
N
N
N
N
E
E
E
E
W
W
W
S
E
W
N
W
N
E
N
E
E
N
W
E
E
S
S
W
W
E
E
N
E
S
S
S
W
S
E
W
N
W
S
S
W
E
N
W
W
E
E
N
E
E
N
N
N
N
E
W
S
E
E
N
N
N
E
N
E
N
N
S
S
W
W
E
S
W
W
N
N
N
E
N
N
N
N
S
S
W
N
W
N
N
W
N
N
W
W
N
W
S
S
W
S
W
W
W
S
E
E
...

result:

ok 2874 steps

Test #37:

score: 100
Accepted
time: 4ms
memory: 8000kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111111010000011110011110010100011010000001001111100010101010000010110001101101001011011010000100100100100110000111010100011110111100101011111100011111000110010110000101100101111010100000011001001000011101001101100100111001001001110000011011110101110110011111001101110000001010010101111010000101000100...

input:

walk
1111110100000111100111100101000110100000010011111000101010100000101100011011010010110110100001001001001001100001110101000111101111001010111111000111110001100101100001011001011110101000000110010010000111010011011001001110010010011100000110111101011101100111110011011100000010100101011110100001010...

output:

N
E
N
N
S
W
N
S
E
S
E
N
E
E
E
N
N
E
S
E
N
N
E
S
E
E
N
W
E
S
E
N
E
S
N
W
N
N
W
N
S
S
N
W
W
S
E
W
N
N
E
W
S
E
E
E
S
E
N
N
N
S
E
N
S
W
S
S
E
E
E
N
E
N
W
W
S
W
E
N
E
E
S
E
E
E
N
E
S
E
E
S
W
W
E
E
S
S
E
N
E
S
E
N
E
N
N
N
W
W
W
E
S
N
E
E
S
S
W
N
S
E
S
W
S
S
E
N
E
N
E
W
N
N
E
S
N
E
E
N
N
E
N
N
N
E
N
N
S
W
...

result:

ok 3946 steps

Test #38:

score: 100
Accepted
time: 0ms
memory: 8096kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010100110111101010001101001111000101000111100111000110100010100010101101010101110100100100000000101111101110101111001001111000000100001100101110000000001100010101011101100110011110110010110000001110001010010100111101000111100100010110100001101000111000010011110110101110011111001100011000111101100000...

input:

walk
0101001101111010100011010011110001010001111001110001101000101000101011010101011101001001000000001011111011101011110010011110000001000011001011100000000011000101010111011001100111101100101100000011100010100101001111010001111001000101101000011010001110000100111101101011100111110011000110001111011...

output:

E
E
N
E
N
E
E
S
W
E
E
E
N
E
E
S
W
S
E
E
N
S
E
E
N
W
E
S
E
E
E
N
E
N
N
W
E
E
S
S
S
E
E
N
W
N
S
E
N
S
E
W
S
W
W
N
N
N
N
W
E
E
N
E
S
S
W
E
N
N
E
S
E
E
E
N
N
N
E
W
W
N
W
S
W
W
S
W
W
S
W
N
W
N
S
E
S
W
S
W
E
N
W
W
N
E
N
N
E
W
S
S
W
W
W
E
E
S
S
S
N
W
N
S
E
N
E
E
E
E
N
E
N
W
W
N
N
S
S
E
E
S
E
E
W
N
E
E
S
E
...

result:

ok 5074 steps

Test #39:

score: 100
Accepted
time: 0ms
memory: 8068kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110001110010110110111110010010111001010010110101000101011011100111111000110111100000001100011101110101100000110111100001111001000001010100101100011110010110011100101110101011110000011010100100101101001101000111011101110010010000110000100010110011110010000001000110011101010000001111100000110110000000...

input:

walk
1100011100101101101111100100101110010100101101010001010110111001111110001101111000000011000111011101011000001101111000011110010000010101001011000111100101100111001011101010111100000110101001001011010011010001110111011100100100001100001000101100111100100000010001100111010100000011111000001101100...

output:

E
W
N
E
N
E
E
E
E
N
N
N
N
N
W
W
E
E
S
S
S
W
N
N
S
S
E
S
E
S
N
W
S
S
E
W
S
E
E
E
E
W
W
W
W
N
W
S
W
N
W
E
S
W
E
E
N
E
N
W
W
W
N
W
N
E
N
E
N
W
E
S
S
N
W
W
E
S
W
W
N
N
N
N
N
S
E
N
E
E
S
E
N
S
E
N
E
N
S
W
N
N
E
E
N
W
E
S
S
S
S
E
N
S
S
S
E
W
N
E
E
E
N
S
W
W
N
E
W
N
E
E
E
S
S
N
N
W
W
W
S
S
W
N
W
S
S
S
W
E
...

result:

ok 4170 steps

Test #40:

score: 100
Accepted
time: 3ms
memory: 8040kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001010100110111101011001101110001110110110001010000110000111010110001101010110110110110001000110101110001010110000110011100101000011101100100100100011101011111010001110001100010110100110001001000110110010110000000101110100101000101010100111101010101000100110110010001001110111101010110000001000001111...

input:

walk
0010101001101111010110011011100011101101100010100001100001110101100011010101101101101100010001101011100010101100001100111001010000111011001001001000111010111110100011100011000101101001100010010001101100101100000001011101001010001010101001111010101010001001101100100010011101111010101100000010000...

output:

E
N
N
W
E
S
E
E
E
S
N
N
N
N
N
W
W
S
S
N
N
N
E
E
E
W
W
N
E
N
E
S
N
E
S
N
W
W
W
W
W
S
W
E
E
W
N
W
E
E
E
N
E
W
W
W
N
W
S
N
N
N
N
S
E
S
N
E
N
E
N
E
S
S
N
N
N
N
E
N
S
S
S
S
E
S
E
S
N
E
S
N
W
W
S
S
E
E
E
N
N
N
E
W
W
N
W
S
N
N
E
W
S
W
N
S
E
E
E
N
E
N
W
E
S
S
E
N
S
S
E
S
S
W
E
E
E
E
E
S
W
E
E
E
W
S
E
S
N
E
...

result:

ok 2692 steps

Test #41:

score: 100
Accepted
time: 0ms
memory: 8104kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100011101011001000111110010010010001001101001101000001101001110011001001110011001010001110110111000011001101011001100100000101110000010000000101110101001010111010010110001101000001011001000100011101100110101010011100101110000010111101010010100101001101011101101101100010100001010010001001101101110010...

input:

walk
1000111010110010001111100100100100010011010011010000011010011100110010011100110010100011101101110000110011010110011001000001011100000100000001011101010010101110100101100011010000010110010001000111011001101010100111001011100000101111010100101001010011010111011011011000101000010100100010011011011...

output:

E
E
N
N
W
W
S
N
E
N
S
E
N
E
N
N
W
N
S
E
E
S
E
W
S
E
S
E
E
N
N
S
W
N
N
N
S
W
E
E
N
N
W
N
N
N
W
W
E
N
E
N
E
E
S
S
W
S
N
N
S
E
E
S
S
E
E
S
E
S
W
E
N
N
S
W
W
W
E
E
N
N
N
S
E
E
N
E
E
N
E
N
S
W
S
E
E
S
N
N
N
N
E
N
N
E
E
N
N
E
N
E
S
N
W
S
W
W
N
E
W
N
S
S
E
S
E
W
S
E
S
N
W
W
S
E
S
W
E
E
S
S
E
W
N
E
E
S
S
E
...

result:

ok 2678 steps

Test #42:

score: 100
Accepted
time: 0ms
memory: 8108kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101001100011000001111110010011010010001111001100110000101010010001011110101100010000111110011001100100000001010011000110011110010010110100110000000101000110111110100011000010110101000101101101010000000011010101110010001100000101111101011011110111110000111001010010101010111110000011010001011001110100...

input:

walk
1010011000110000011111100100110100100011110011001100001010100100010111101011000100001111100110011001000000010100110001100111100100101101001100000001010001101111101000110000101101010001011011010100000000110101011100100011000001011111010110111101111100001110010100101010101111100000110100010110011...

output:

E
N
W
N
E
N
W
E
S
W
S
E
S
E
N
S
E
E
E
W
W
N
E
N
N
N
E
S
S
E
W
S
N
N
N
N
N
W
W
S
S
W
N
N
W
W
S
N
E
E
S
W
E
S
W
W
E
E
E
S
W
S
E
W
N
E
N
N
N
E
E
N
E
S
E
W
S
S
E
E
N
S
W
W
N
E
W
N
N
N
W
W
N
W
W
W
S
N
W
N
N
N
S
S
S
S
S
N
N
E
E
E
S
S
N
W
S
W
E
N
E
N
E
S
S
N
E
N
N
N
E
S
N
E
S
S
E
S
S
E
S
W
E
N
W
N
N
W
N
N
...

result:

ok 2928 steps

Test #43:

score: 100
Accepted
time: 0ms
memory: 8092kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101000001011001010011111110101111001010111001100001010110101101001101000111000001010001001011110101111010100110110101011100100100001110011110110101100101000110100110011100000011101001011000110010101001111000100000011010001010111111001010000110101101001011100001111110010001011010101100101011101101100...

input:

walk
1010000010110010100111111101011110010101110011000010101101011010011010001110000010100010010111101011110101001101101010111001001000011100111101101011001010001101001100111000000111010010110001100101010011110001000000110100010101111110010100001101011010010111000011111100100010110101011001010111011...

output:

E
N
S
E
N
N
E
N
N
W
S
N
E
E
N
E
N
N
E
N
E
S
N
W
S
W
W
N
W
S
N
E
N
W
W
S
S
S
W
S
W
E
N
N
N
S
W
N
S
E
S
W
E
E
E
E
W
W
S
E
W
N
N
N
N
E
E
E
N
S
S
N
E
E
W
N
E
N
E
E
E
N
W
N
N
E
E
N
S
W
W
S
W
N
W
N
E
N
N
E
N
N
S
S
S
N
E
N
N
N
N
E
W
N
N
W
N
E
E
W
W
S
E
S
S
S
S
S
E
E
N
S
E
S
N
E
E
W
W
W
W
W
S
E
E
S
E
E
S
E
...

result:

ok 3048 steps

Test #44:

score: 100
Accepted
time: 2ms
memory: 7960kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010010110100100110110000001001011010110111100001100101011110010100111001101010001000000100001100101110010100111111100001001101000011010111101110001011101111010000101010101001110000010100110101001001111001010011101110011100110111010100000010110111101100100001110001010010010011110110010110000111010111...

input:

walk
0100101101001001101100000010010110101101111000011001010111100101001110011010100010000001000011001011100101001111111000010011010000110101111011100010111011110100001010101010011100000101001101010010011110010100111011100111001101110101000000101101111011001000011100010100100100111101100101100001110...

output:

E
N
N
N
N
S
S
S
E
E
N
S
W
N
S
S
E
E
E
W
N
E
E
S
E
E
N
N
W
N
S
W
W
E
N
W
N
W
E
S
W
S
N
E
E
N
E
N
N
S
W
W
W
E
N
W
W
W
N
N
E
S
N
W
S
W
S
S
N
W
S
S
N
N
E
N
W
N
N
S
S
E
N
N
N
W
E
S
E
N
N
N
E
W
W
E
N
E
N
N
W
W
W
S
N
N
S
E
E
E
N
W
N
N
N
N
W
N
W
E
S
E
S
W
S
S
S
N
N
W
N
N
S
S
S
N
E
N
E
S
E
N
E
S
E
E
N
W
N
E
...

result:

ok 2940 steps

Test #45:

score: 100
Accepted
time: 8ms
memory: 8020kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001010110111000010110001101000101110001101000110110101010100110111000101100101100000111001010110101111001110100011001000010101110001101000101000111011001010000001001101110100101010011111110111110000010001010100001101000010110101100101001100001101110101101110110010011010001010001101111000111001000010...

input:

walk
0010101101110000101100011010001011100011010001101101010101001101110001011001011000001110010101101011110011101000110010000101011100011010001010001110110010100000010011011101001010100111111101111100000100010101000011010000101101011001010011000011011101011011101100100110100010100011011110001110010...

output:

N
E
E
S
E
W
W
E
N
N
W
N
W
S
N
E
E
E
N
W
W
N
N
E
S
E
W
N
W
N
N
N
S
S
W
N
N
S
S
S
N
E
E
E
S
E
E
S
W
S
N
E
E
S
E
S
E
N
N
N
E
S
S
N
N
N
N
S
W
E
E
E
S
W
S
E
W
N
E
N
W
W
S
W
S
S
S
W
N
W
S
S
E
W
N
N
N
E
W
W
N
E
E
W
W
N
E
W
N
E
E
N
E
S
N
W
W
N
W
S
N
E
E
N
N
E
N
N
W
N
N
W
N
N
W
W
W
N
S
E
E
E
E
W
S
S
E
N
S
S
...

result:

ok 4758 steps

Test #46:

score: 100
Accepted
time: 7ms
memory: 8040kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

011000110101111110101001010001110100001111100110000101101111010011011100010101100110111001111000101011010000011010010101001010101000010001001101001010100101010101111111010010011100000000011111001000110010010000110010001010100100110101001110110100110000011110110111001000011010000110111101110101010010...

input:

walk
0110001101011111101010010100011101000011111001100001011011110100110111000101011001101110011110001010110100000110100101010010101010000100010011010010101001010101011111110100100111000000000111110010001100100100001100100010101001001101010011101101001100000111101101110010000110100001101111011101010...

output:

E
N
E
W
S
E
W
W
N
N
N
E
N
W
N
E
N
N
W
N
S
E
E
E
S
E
E
N
W
E
E
S
E
E
E
E
E
E
E
N
W
N
S
W
N
W
S
N
E
S
E
E
S
W
W
W
W
S
W
E
E
S
W
W
S
S
S
N
N
N
W
N
W
W
S
S
E
E
W
W
N
N
E
E
S
W
E
E
E
E
N
E
S
E
N
E
E
S
W
E
N
N
E
E
E
E
N
N
N
N
N
E
S
N
W
N
E
W
S
W
W
N
N
W
N
N
N
S
E
N
N
N
N
N
W
N
E
N
N
N
S
S
S
W
S
W
S
E
W
N
...

result:

ok 3620 steps

Test #47:

score: 100
Accepted
time: 3ms
memory: 8016kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110011000010101101100001101000111000010001101101001110011010100110000101000010010100100110101110110000111010101110101010001110110010100001101101011101000100101101001001101100000100001010001110000110010110110101110110001101101100011110111000011011111010100011101001010010011000011100010000010111101101...

input:

walk
1100110000101011011000011010001110000100011011010011100110101001100001010000100101001001101011101100001110101011101010100011101100101000011011010111010001001011010010011011000001000010100011100001100101101101011101100011011011000111101110000110111110101000111010010100100110000111000100000101111...

output:

N
N
N
N
N
N
S
S
S
S
S
E
S
E
N
N
S
S
E
N
N
N
W
W
N
N
S
S
E
E
N
N
E
E
N
S
E
E
S
S
E
S
N
W
N
E
E
S
N
W
W
N
N
N
E
N
W
W
E
E
S
W
W
W
N
N
N
N
E
N
S
W
S
W
N
N
N
E
N
N
S
S
S
N
E
E
W
W
W
N
N
N
N
W
E
E
S
N
E
S
N
E
S
N
W
W
N
E
E
N
W
E
S
E
S
S
S
W
W
E
E
N
E
W
N
N
E
N
E
E
E
N
E
S
N
N
W
N
S
E
N
N
W
E
S
E
N
E
S
S
...

result:

ok 2966 steps

Test #48:

score: 100
Accepted
time: 3ms
memory: 8024kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110001110010101100001110110101010010000010100110001001000011100101111010010111110100100100101101000011111001001110100111111010001001100111010001101011110011100100111011000011101101000001110110110010000000010100010010111101100001111110101010100001000110000111101101011000101001100011010110010010100111...

input:

walk
1100011100101011000011101101010100100000101001100010010000111001011110100101111101001001001011010000111110010011101001111110100010011001110100011010111100111001001110110000111011010000011101101100100000000101000100101111011000011111101010101000010001100001111011010110001010011000110101100100101...

output:

E
N
N
N
N
S
S
E
S
E
N
S
W
S
E
W
N
N
W
S
W
N
N
N
N
N
E
E
S
E
E
N
N
N
W
S
S
N
N
E
S
E
W
S
E
E
S
E
E
W
N
E
E
N
E
E
N
S
W
S
S
S
E
W
N
W
S
W
W
S
E
S
S
N
E
S
E
S
W
W
W
E
E
E
N
W
N
W
N
E
E
W
W
W
W
E
N
E
E
N
E
N
E
S
N
W
N
W
S
W
N
W
N
S
W
N
N
N
N
W
N
S
W
S
S
E
W
N
W
W
N
S
W
S
E
E
W
W
S
S
W
N
N
N
N
N
S
S
S
S
...

result:

ok 2624 steps

Test #49:

score: 100
Accepted
time: 4ms
memory: 7980kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

011101101111101100101111100000011001110011000001011010000000010101110100111011110001110100001011101110101100010001000111110101111100100000110101110111101011100000110111000010110110010011000111011110101111000000001010110011101011100100011101010110001100011100110111101100110100100001100001110000100011...

input:

walk
0111011011111011001011111000000110011100110000010110100000000101011101001110111100011101000010111011101011000100010001111101011111001000001101011101111010111000001101110000101101100100110001110111101011110000000010101100111010111001000111010101100011000111001101111011001101001000011000011100001...

output:

N
E
N
N
E
S
N
N
W
N
W
N
E
E
E
S
E
W
W
E
N
N
E
N
E
E
N
N
E
S
S
S
N
E
W
N
E
E
S
S
S
W
E
E
S
N
N
N
N
E
W
S
E
S
S
E
W
N
N
E
S
E
S
E
N
E
N
W
N
N
N
S
E
E
N
E
N
W
E
S
S
S
W
E
N
E
N
S
W
N
W
S
W
W
W
S
N
W
N
N
E
E
W
W
S
E
W
S
W
N
N
W
E
S
S
E
E
E
S
S
E
N
S
S
E
N
S
E
N
E
N
S
E
E
N
W
E
N
S
E
S
E
W
N
N
E
N
N
E
S
...

result:

ok 2880 steps

Test #50:

score: 100
Accepted
time: 4ms
memory: 8004kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100011010001111100001101100101110001000000001110001100011100100111100001010101001100111000110111000000000101001101010100011010011000100100111100010111010100101000101100101000111000100000100000010000100101100000010100101011000011101000000001110110100100111110100011001101101100010001000001111010010001...

input:

walk
1000110100011111000011011001011100010000000011100011000111001001111000010101010011001110001101110000000001010011010101000110100110001001001111000101110101001010001011001010001110001000001000000100001001011000000101001010110000111010000000011101101001001111101000110011011011000100010000011110100...

output:

N
N
N
N
E
W
S
S
E
N
E
E
E
S
S
W
W
S
W
E
N
E
E
E
W
S
W
E
N
N
E
E
E
S
E
N
N
W
E
S
S
E
E
N
N
N
W
W
N
E
W
N
W
W
W
E
E
S
S
N
N
E
S
S
E
E
S
W
S
N
E
S
E
S
S
W
W
W
E
E
E
N
E
S
E
E
W
N
S
W
N
W
N
E
N
W
N
E
E
W
N
E
W
W
N
E
E
E
E
E
N
N
S
W
W
N
E
W
S
W
N
S
W
N
S
W
N
N
E
N
N
S
E
W
W
W
W
S
E
W
N
E
E
E
S
W
S
W
E
S
...

result:

ok 5006 steps

Test #51:

score: 100
Accepted
time: 3ms
memory: 8032kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101100001000110110100010101000000110010010110100111110001011000111111101100110001011111000100101001010011000101000110001010110100011110000000101011101110101000011000011110111001110001001010100101101001011001111010110001000101111010010100000010011000011110100010001000011110111001001010000101101101000...

input:

walk
1011000010001101101000101010000001100100101101001111100010110001111111011001100010111110001001010010100110001010001100010101101000111100000001010111011101010000110000111101110011100010010101001011010010110011110101100010001011110100101000000100110000111101000100010000111101110010010100001011011...

output:

E
N
N
N
W
E
N
E
S
N
W
W
E
S
S
E
E
S
S
W
E
E
N
E
E
W
N
E
E
N
S
W
W
S
S
E
E
N
E
N
N
N
N
E
N
E
W
N
E
E
N
S
W
W
W
S
W
N
S
W
S
E
W
S
S
N
E
W
N
N
W
W
N
N
E
E
N
E
E
N
W
W
W
N
W
S
W
W
S
S
E
S
W
E
N
W
W
N
W
N
E
W
S
S
S
E
S
W
E
N
W
N
N
E
S
E
N
E
W
N
E
E
S
N
N
W
N
N
N
W
S
N
E
S
E
N
N
N
W
S
N
N
W
N
E
E
W
W
N
W
...

result:

ok 3914 steps

Test #52:

score: 100
Accepted
time: 10ms
memory: 8040kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111010101001110100100100100000111001000100100101011100110110001010000010101001010011101010010010010110011100010101001110011100110111100001011100000111000111000110111000110010000110001111000100011101111000100000001110110111000000110101100111100011011100011010001100011010111110000000010001101011010010...

input:

walk
1110101010011101001001001000001110010001001001010111001101100010100000101010010100111010100100100101100111000101010011100111001101111000010111000001110001110001101110001100100001100011110001000111011110001000000011101101110000001101011001111000110111000110100011000110101111100000000100011010110...

output:

N
N
N
E
N
W
E
S
S
E
N
N
E
W
S
E
E
N
E
E
N
E
E
W
W
N
W
N
W
S
W
N
W
N
W
W
E
S
N
E
N
E
S
N
E
S
N
W
N
N
E
E
W
W
N
S
W
N
N
S
S
S
W
W
S
E
W
N
E
E
N
W
N
N
N
E
W
N
E
N
N
W
N
W
N
E
E
S
N
W
N
E
W
S
W
N
S
S
S
N
E
S
E
S
W
E
E
N
N
N
N
N
W
N
N
N
E
N
N
S
E
N
S
E
S
N
E
E
N
N
N
W
W
S
W
W
E
E
E
S
N
W
S
N
N
N
W
E
N
N
...

result:

ok 3826 steps

Test #53:

score: 100
Accepted
time: 0ms
memory: 8064kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001000001110011010011001010111010010010110001101111100100100010011011110100010010011110101111110110010001001011001000100110101111100101001010100001011110110111010011010101111001000010110100110110101001110110110101001010111110100100010011010100101100101111100000011101101011110010110001010010101000110...

input:

walk
0010000011100110100110010101110100100101100011011111001001000100110111101000100100111101011111101100100010010110010001001101011111001010010101000010111101101110100110101011110010000101101001101101010011101101101010010101111101001000100110101001011001011111000000111011010111100101100010100101010...

output:

N
E
N
W
E
E
E
E
S
S
N
E
E
N
S
S
E
W
N
W
S
N
N
S
W
N
W
N
E
E
E
N
W
N
N
S
W
N
W
S
N
E
N
W
E
S
S
E
S
W
E
E
N
E
W
N
N
S
E
E
S
N
E
N
W
N
W
S
N
W
W
S
N
E
N
S
E
E
E
E
N
W
W
E
E
S
S
S
S
W
E
S
E
S
E
W
N
E
E
E
N
S
E
E
N
E
E
N
N
N
W
N
E
W
W
N
N
N
N
S
S
W
W
W
E
N
E
W
S
E
E
S
E
N
N
N
N
N
S
W
W
S
W
E
N
W
E
E
E
S
...

result:

ok 3758 steps

Test #54:

score: 100
Accepted
time: 4ms
memory: 8080kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000100010100011100111101010011110101111101001011110110000110101111100000011100010111111100000100110110101010100000110000110001001010110100000100001101000111011001001101110110111110001100010110111101101111110000011000001101001100001110101011110011110001010000100100100101011000001100001110111000110011...

input:

walk
0001000101000111001111010100111101011111010010111101100001101011111000000111000101111111000001001101101010101000001100001100010010101101000001000011010001110110010011011101101111100011000101101111011011111100000110000011010011000011101010111100111100010100001001001001010110000011000011101110001...

output:

E
E
E
N
N
S
S
E
E
E
E
N
E
N
W
E
E
E
E
E
N
N
S
S
S
E
S
W
E
E
W
N
N
E
E
S
W
E
S
N
N
W
W
N
N
S
S
S
W
N
W
S
S
N
W
S
N
E
N
N
W
E
N
W
W
E
E
N
W
W
W
S
W
S
E
E
W
W
N
W
N
N
W
S
N
W
N
W
E
E
N
W
N
E
W
S
E
S
E
N
S
E
N
N
W
E
S
E
N
N
N
N
N
W
N
N
N
N
E
W
N
N
E
S
E
W
N
W
N
S
S
W
N
N
W
E
S
S
S
N
W
S
W
W
S
W
N
S
S
S
...

result:

ok 5644 steps

Test #55:

score: 100
Accepted
time: 5ms
memory: 8104kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111001010001000101110001010011111010001011101100111000000010110100101010101000010001111110111011000010010101010100001111000100011110101111101000100001110001101010001111110100001010101101001011110000001110010100010101101100010010111110010110100110011101111011100010011101001100000111111101000000100111...

input:

walk
1110010100010001011100010100111110100010111011001110000000101101001010101010000100011111101110110000100101010101000011110001000111101011111010001000011100011010100011111101000010101011010010111100000011100101000101011011000100101111100101101001100111011110111000100111010011000001111111010000001...

output:

E
N
N
N
W
E
N
E
S
E
S
W
S
E
W
N
E
N
W
N
N
N
E
E
N
N
E
E
E
N
E
N
E
S
N
W
N
E
N
N
N
N
E
S
E
E
E
N
E
S
S
S
E
N
E
N
S
E
N
S
S
N
E
S
N
W
W
W
S
E
S
S
S
N
W
W
N
E
W
S
S
E
S
E
S
E
E
N
N
E
N
E
S
N
N
E
W
W
N
S
E
S
W
S
W
W
N
E
N
S
W
S
E
S
S
E
N
S
S
E
E
N
N
N
E
W
N
E
N
N
E
N
E
S
N
W
S
W
W
W
N
W
N
W
E
S
E
N
E
N
...

result:

ok 3310 steps

Test #56:

score: 100
Accepted
time: 3ms
memory: 8044kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111111110000111100011100101110000110001111010110010001100000101001101010010011010101100001100110110011110010000110010111011001010111000100001101111001001000111000101000100010000011101000011010110010101011000011001101000100101110001010000010001110111100110001110010111010101100110011000001010100101110...

input:

walk
1111111100001111000111001011100001100011110101100100011000001010011010100100110101011000011001101100111100100001100101110110010101110001000011011110010010001110001010001000100000111010000110101100101010110000110011010001001011100010100000100011101111001100011100101110101011001100110000010101001...

output:

E
N
E
E
E
E
N
W
N
W
E
E
W
S
W
E
E
S
S
E
W
N
W
W
S
E
W
W
E
N
W
W
W
N
N
E
E
N
E
W
W
W
N
N
S
E
E
N
N
N
N
W
N
S
W
S
E
W
N
N
N
S
S
E
E
S
S
W
S
N
W
E
E
S
E
N
S
W
S
E
E
N
N
N
E
W
W
N
N
N
W
E
S
W
E
S
E
E
E
W
N
W
E
S
W
W
S
E
S
S
S
S
N
E
N
E
N
N
S
S
W
N
S
S
E
E
N
E
S
S
S
S
S
N
E
N
E
E
W
S
E
E
E
S
E
S
E
E
E
W
...

result:

ok 3908 steps

Test #57:

score: 100
Accepted
time: 4ms
memory: 8008kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110010101000100010011100010110111100010000101111000010111100100001100101000001110110000100110001101011001000111010110010101100100000110010000110010110010100111100000001100101111110001001000101011101011011100110101101101111100001111110001100101111000010111011101001001100001101010110011010001001000111...

input:

walk
1100101010001000100111000101101111000100001011110000101111001000011001010000011101100001001100011010110010001110101100101011001000001100100001100101100101001111000000011001011111100010010001010111010110111001101011011011111000011111100011001011110000101110111010010011000011010101100110100010010...

output:

E
N
E
N
N
E
E
W
S
N
W
W
N
E
W
W
S
N
N
N
S
E
E
E
E
N
E
E
N
S
S
E
N
S
W
N
W
S
N
W
S
S
E
E
W
S
S
E
N
E
E
S
S
S
W
W
N
W
E
S
E
N
S
E
E
E
N
W
E
E
E
N
S
S
W
E
N
E
N
N
S
S
S
N
E
E
S
N
W
S
N
W
W
W
N
S
W
S
W
W
N
N
E
N
N
N
E
N
E
S
S
W
E
S
W
S
N
E
E
N
E
W
S
W
N
N
N
N
N
E
N
S
E
S
E
E
S
N
E
N
E
E
W
S
S
W
E
S
S
N
...

result:

ok 4204 steps

Test #58:

score: 100
Accepted
time: 7ms
memory: 7992kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001100100111110110110101101000011110111001100000100001111101001010011000100100100011110001101011001000100100001110101111010010011101010111001110111111110000110010111010110001011110111011110011101001011110010110000110001001100111001101010000001101000010000000010100111010000010101100111110001101000101...

input:

walk
0011001001111101101101011010000111101110011000001000011111010010100110001001001000111100011010110010001001000011101011110100100111010101110011101111111100001100101110101100010111101110111100111010010111100101100001100010011001110011010100000011010000100000000101001110100000101011001111100011010...

output:

E
N
E
S
E
E
N
E
S
N
E
E
W
S
E
E
N
E
S
E
N
N
S
E
E
N
E
N
E
W
S
S
E
E
N
W
E
S
E
E
S
E
E
N
N
N
S
W
E
S
S
W
W
N
E
W
N
N
N
N
S
S
S
W
N
N
W
S
N
E
S
S
E
S
W
S
N
W
W
S
W
W
E
E
E
W
N
W
N
W
W
N
N
S
W
N
N
N
W
S
S
S
W
E
N
N
N
W
N
N
N
S
S
S
E
E
S
E
E
N
E
S
S
N
E
S
N
W
N
E
E
N
N
S
S
S
E
N
N
N
S
S
E
E
N
S
E
S
E
N
...

result:

ok 5866 steps

Test #59:

score: 100
Accepted
time: 12ms
memory: 7984kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010110001101010110110001010001110110110010010001001110101111001000010100100011100010001001000101001111111010011000110100101110110110100010110101110100101001111100110001001010011010101110101010110000111101101010011000011110101101010000110110010010110110011001101101010100110001010011001110011000001101...

input:

walk
0101100011010101101100010100011101101100100100010011101011110010000101001000111000100010010001010011111110100110001101001011101101101000101101011101001010011111001100010010100110101011101010101100001111011010100110000111101011010100001101100100101101100110011011010101001100010100110011100110000...

output:

E
N
N
W
E
E
E
S
E
N
E
E
W
S
S
E
N
E
W
S
E
W
W
N
N
W
S
S
W
E
N
W
N
W
S
S
N
N
N
N
N
W
N
W
N
N
N
S
S
S
S
N
E
N
E
N
E
E
S
N
N
N
N
E
W
S
E
S
S
E
W
N
N
E
S
E
S
E
E
E
W
W
W
N
E
N
N
E
E
E
W
W
W
S
W
N
N
W
W
W
E
E
E
E
E
E
N
E
W
N
S
S
E
E
N
E
W
S
E
W
W
W
W
N
N
W
N
E
E
N
N
E
N
E
E
E
E
E
W
N
N
W
S
W
W
E
E
N
E
N
...

result:

ok 2152 steps

Test #60:

score: 100
Accepted
time: 5ms
memory: 8092kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000001010111000110000011100101100110110000101001100100100001110000111100000001100100010001110000100000001101000001110110111100000011001110110100101110001000001100011111110110001100110101101011101000110101100001010110100101110001100010101101101000011000001100010111111010011110100110001001001001010100...

input:

walk
0000010101110001100000111001011001101100001010011001001000011100001111000000011001000100011100001000000011010000011101101111000000110011101101001011100010000011000111111101100011001101011010111010001101011000010101101001011100011000101011011010000110000011000101111110100111101001100010010010010...

output:

N
E
N
N
E
W
N
E
W
N
W
E
E
W
S
S
S
W
N
N
S
S
E
E
E
E
E
W
S
N
W
S
S
E
W
W
E
N
N
N
N
E
N
N
W
S
N
N
W
S
N
W
S
W
E
N
W
N
S
E
E
E
E
N
W
W
N
N
S
S
W
N
N
N
W
S
S
N
N
E
N
N
N
S
W
E
E
N
N
N
E
W
N
N
N
N
E
W
W
S
W
S
N
E
N
W
N
N
N
S
S
E
N
S
E
W
W
S
E
E
S
S
E
E
S
W
E
N
E
S
S
W
E
S
S
E
S
W
E
E
E
E
N
E
S
S
S
N
N
E
...

result:

ok 2274 steps

Test #61:

score: 100
Accepted
time: 4ms
memory: 8004kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010101010101010010011010101111110100000101010110000010101001100010010110011100110100000100010111000100100101100011001000100100001100100100101001100110001001000100111100110010101100111100110010001100001101101111011000110101100010100110110011101000010100001001100111010001110101000001011101110111100000...

input:

walk
0101010101010100100110101011111101000001010101100000101010011000100101100111001101000001000101110001001001011000110010001001000011001001001010011001100010010001001111001100101011001111001100100011000011011011110110001101011000101001101100111010000101000010011001110100011101010000010111011101111...

output:

N
E
E
N
S
W
S
E
E
N
E
S
E
N
E
N
E
E
E
E
S
S
E
E
N
N
W
E
N
W
E
E
W
N
E
E
N
E
E
S
W
E
N
E
S
E
S
E
N
S
E
S
W
W
W
E
E
E
N
N
S
W
W
N
W
N
E
E
N
E
E
S
S
S
N
N
N
E
N
S
S
E
E
N
W
E
S
E
N
S
W
W
S
E
E
S
W
W
E
E
N
W
W
W
S
N
E
N
W
N
W
W
W
N
E
E
W
N
W
W
N
N
N
N
S
E
E
N
N
E
S
S
N
N
E
N
W
E
S
S
S
N
N
E
E
N
E
S
E
N
...

result:

ok 3074 steps

Test #62:

score: 100
Accepted
time: 5ms
memory: 7972kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110100110010011010001010010100110010000111100111011010000010110100010010101110100000011110001011001111000010001001010101011010110100101001001100100001101010000100011011000100010001101010100011100001100101000010110101101001000011001001000110000100001001010111010111001010010101000111100101110100001011...

input:

walk
1101001100100110100010100101001100100001111001110110100000101101000100101011101000000111100010110011110000100010010101010110101101001010010011001000011010100001000110110001000100011010101000111000011001010000101101011010010000110010010001100001000010010101110101110010100101010001111001011101000...

output:

E
E
N
N
E
S
S
E
N
N
S
S
E
N
E
E
E
S
N
W
W
S
E
W
N
W
S
W
W
N
N
N
N
W
W
E
N
E
E
N
N
N
W
N
N
W
W
E
S
S
S
W
W
N
S
E
E
N
W
E
N
N
E
E
N
W
E
S
E
N
N
N
E
S
N
E
S
N
E
N
N
E
N
E
N
E
W
N
S
W
N
N
E
E
N
E
S
E
W
S
E
E
N
N
N
E
N
E
N
E
E
S
W
E
E
E
W
S
W
E
E
S
W
E
E
E
E
W
W
W
N
E
W
W
N
W
N
W
N
N
E
N
S
S
N
E
S
E
S
W
...

result:

ok 2300 steps

Test #63:

score: 100
Accepted
time: 5ms
memory: 8012kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000010001101010110100001110000100100111101000000110001011101100110100001011110001100100001100011010010111110100101110000000100001101101101010100011000001111100110010000001110010001100000011001110000010010001110010100110100110000010010001000100101110001010010010101001110110001100010000001001110110100...

input:

walk
0000100011010101101000011100001001001111010000001100010111011001101000010111100011001000011000110100101111101001011100000001000011011011010101000110000011111001100100000011100100011000000110011100000100100011100101001101001100000100100010001001011100010100100101010011101100011000100000010011101...

output:

E
N
N
W
N
N
E
E
N
W
E
S
W
W
N
S
S
S
S
N
E
E
N
W
E
S
E
N
E
E
S
E
E
E
W
W
S
W
E
S
N
E
S
N
E
E
E
S
N
E
N
W
W
N
W
N
W
S
N
E
S
E
E
W
S
E
E
E
N
N
S
W
N
W
N
E
W
N
E
N
E
E
E
E
W
S
E
S
E
N
E
E
N
W
W
E
N
E
E
N
E
S
S
S
E
E
N
N
N
E
N
E
S
E
N
N
E
S
E
E
N
E
N
E
S
E
W
S
E
W
W
E
S
E
E
E
W
S
E
S
S
S
N
E
S
S
N
N
N
N
...

result:

ok 3400 steps

Test #64:

score: 100
Accepted
time: 5ms
memory: 8020kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000110001101100100011001010111111110100000101001110010111111010000110110001110100100110001001100100101110101110101100011110001011010000110011101001000011110100000010010010111011110001011001101001000010100001101100110110001001001001000101001001011001100000101000111101101011001110100010110010100001101...

input:

walk
0001100011011001000110010101111111101000001010011100101111110100001101100011101001001100010011001001011101011101011000111100010110100001100111010010000111101000000100100101110111100010110011010010000101000011011001101100010010010010001010010010110011000001010001111011010110011101000101100101000...

output:

E
E
N
N
E
S
E
S
E
W
N
W
S
N
N
W
W
S
N
E
N
N
N
W
E
N
E
E
N
E
W
N
N
N
W
E
N
W
N
W
E
N
S
S
W
E
E
E
E
E
S
N
W
N
E
W
W
E
N
W
N
N
E
N
W
W
N
W
E
N
E
N
E
W
N
E
N
N
N
N
N
S
S
W
W
S
S
E
N
S
W
N
N
E
N
W
W
W
S
W
N
W
E
S
W
E
S
S
W
E
N
W
E
N
E
S
N
N
N
E
W
W
W
E
E
S
E
E
E
N
W
N
N
W
S
N
E
E
S
E
N
S
E
E
N
W
E
E
E
E
...

result:

ok 2522 steps

Test #65:

score: 100
Accepted
time: 0ms
memory: 7972kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001001001101010100110001010010110100110010010000101010010000001100011000110001100001001110101100100001100001011001100101001110111110100011100110001010001110010100100101000010011101111100110000011100100001010001010100100001000001001101111110101010111000001011110101111000000011101101001000001100100110...

input:

walk
0010010011010101001100010100101101001100100100001010100100000011000110001100011000010011101011001000011000010110011001010011101111101000111001100010100011100101001001010000100111011111001100000111001000010100010101001000010000010011011111101010101110000010111101011110000000111011010010000011001...

output:

E
E
N
N
N
W
W
E
E
N
N
E
S
S
E
E
E
S
N
W
W
S
N
W
N
E
E
N
N
E
S
S
N
N
W
S
S
W
N
N
S
S
W
N
N
N
E
N
W
W
E
E
E
N
W
W
W
N
W
W
E
N
E
N
S
E
N
N
W
W
N
E
N
E
S
N
W
N
S
S
W
N
N
N
N
S
W
N
S
E
S
W
S
N
E
S
S
W
S
S
S
N
E
W
N
N
E
S
E
E
E
E
E
E
N
N
W
E
S
W
E
E
S
N
N
N
N
W
N
N
W
E
S
S
W
N
W
N
S
E
S
S
N
W
W
S
E
S
N
W
...

result:

ok 2362 steps

Test #66:

score: 100
Accepted
time: 0ms
memory: 7992kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111110010010110110010000110100000100100110010001010110001110010111101110100100101000111100100010101010011100011111101110011100010100100110101001000010110110111000000101100100101101101100110001001100101100110001000010100001100001011001000011100101111110100111101001010000011110110100000100000111101110...

input:

walk
1111100100101101100100001101000001001001100100010101100011100101111011101001001010001111001000101010100111000111111011100111000101001001101010010000101101101110000001011001001011011011001100010011001011001100010000101000011000010110010000111001011111101001111010010100000111101101000001000001111...

output:

E
N
N
E
E
S
E
S
E
E
N
E
S
N
N
W
W
N
E
N
W
E
S
W
S
E
E
S
W
W
E
S
W
W
N
N
S
W
S
W
E
N
N
N
E
N
N
N
W
S
S
N
N
W
W
N
N
E
E
N
E
S
S
W
W
E
E
N
N
E
S
S
E
S
E
S
N
E
N
E
N
N
S
E
E
W
S
E
W
N
W
S
S
N
W
S
W
W
W
S
E
W
N
E
N
W
N
E
W
N
N
E
N
W
W
S
W
N
W
N
S
E
S
E
N
E
E
S
S
N
E
S
S
E
W
S
N
N
E
W
N
E
N
E
E
N
S
S
S
N
...

result:

ok 3648 steps

Test #67:

score: 100
Accepted
time: 8ms
memory: 8008kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001011101110001000000000001100011001011011010101000110000101000111101001000010101111100010000010101101001010000111101100001100010000010101100101000000100110010101000011110100011001011000110110011101100111010001001110001000001111111101000001110110100001110011100010011101111001110010100001011100100111...

input:

walk
0010111011100010000000000011000110010110110101010001100001010001111010010000101011111000100000101011010010100001111011000011000100000101011001010000001001100101010000111101000110010110001101100111011001110100010011100010000011111111010000011101101000011100111000100111011110011100101000010111001...

output:

N
E
N
N
W
N
E
W
N
N
S
E
N
E
E
E
S
E
E
W
N
N
N
S
E
N
N
W
N
E
E
S
S
E
N
S
W
N
N
W
N
S
W
N
N
E
N
N
W
E
S
S
W
S
S
S
E
S
S
W
S
S
W
W
S
E
W
N
E
N
W
W
S
S
S
E
E
W
W
N
N
N
N
N
N
E
N
S
E
N
N
N
N
E
W
S
S
W
E
S
S
S
S
N
W
S
N
E
N
W
W
N
N
W
N
W
E
S
S
W
N
S
E
N
E
N
E
N
W
N
E
E
W
W
N
N
E
W
S
E
E
N
E
N
E
S
S
N
E
E
...

result:

ok 4234 steps

Test #68:

score: 100
Accepted
time: 5ms
memory: 8008kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000100100111111110101111001011101010011001100111110110010111100101000110010110000110101101001110101100011100101011101000101000111101010010100110000100001100010010000001001110110010111100101010001010100100110001101010101110000011011101101010100001100101101100100010110001101110110000011010101111101011...

input:

walk
0001001001111111101011110010111010100110011001111101100101111001010001100101100001101011010011101011000111001010111010001010001111010100101001100001000011000100100000010011101100101111001010100010101001001100011010101011100000110111011010101000011001011011001000101100011011101100000110101011111...

output:

E
N
E
N
E
E
N
S
W
N
S
W
N
W
S
N
N
E
E
N
E
S
N
N
S
W
N
N
E
N
N
E
E
N
W
N
N
N
N
N
E
N
N
S
E
S
N
N
S
W
S
W
W
W
N
N
N
E
E
S
N
E
W
W
W
S
E
W
S
S
E
N
E
W
S
E
S
W
S
N
E
E
E
E
S
N
E
E
E
W
S
W
E
E
E
N
N
S
E
E
N
E
S
S
W
E
E
N
S
S
W
S
S
N
N
W
E
E
N
W
N
N
N
N
N
E
W
S
E
S
S
E
S
N
E
S
S
E
E
S
S
E
E
S
S
W
S
S
S
E
...

result:

ok 2266 steps

Test #69:

score: 100
Accepted
time: 2ms
memory: 7988kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

110011100000000110101111100011101110010100101101110010111100001011100110011100100110010001101101010001101010011100101111110010000111000111101101101111110011100110101100101010010100111100100011110001101101100011101110010000110111110110000111101101000000111100101001110000111011001000010100111101000001...

input:

walk
1100111000000001101011111000111011100101001011011100101111000010111001100111001001100100011011010100011010100111001011111100100001110001111011011011111100111001101011001010100101001111001000111100011011011000111011100100001101111101100001111011010000001111001010011100001110110010000101001111010...

output:

N
N
N
N
N
N
N
S
S
S
S
S
S
E
S
N
E
S
E
E
E
E
N
N
S
W
N
W
N
E
W
W
N
S
W
N
S
W
E
E
S
W
W
E
E
N
E
N
N
E
W
W
N
E
E
W
N
E
W
N
N
W
N
W
N
E
W
S
W
N
N
N
N
N
N
E
N
E
N
W
E
S
W
W
N
S
E
S
E
E
E
S
W
E
N
E
E
N
S
E
E
S
S
E
N
N
N
N
N
N
N
S
S
E
N
S
S
N
E
N
N
N
N
W
N
S
E
S
W
S
N
W
W
W
N
W
N
E
E
N
S
W
W
N
E
W
N
W
W
N
...

result:

ok 2664 steps

Test #70:

score: 100
Accepted
time: 4ms
memory: 8020kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

000100100111001001001100110111001110101101010010111001011100101111010010001001100101111001001001001101000010100100101010010100110111000001111001101000110011100001100001110010111010001110101101101100001110110100001110001001010110001001100010101000010010010000101110100010010001000110001101011001010110...

input:

walk
0001001001110010010011001101110011101011010100101110010111001011110100100010011001011110010010010011010000101001001010100101001101110000011110011010001100111000011000011100101110100011101011011011000011101101000011100010010101100010011000101010000100100100001011101000100100010001100011010110010...

output:

N
N
E
S
S
E
E
W
N
E
E
E
S
E
E
N
E
S
E
E
W
N
S
W
N
N
N
W
N
W
W
N
W
W
N
W
E
E
E
N
S
W
N
N
E
E
W
N
S
W
N
W
N
N
S
W
N
W
E
S
W
W
N
N
S
S
E
E
E
S
W
E
E
N
N
N
E
S
N
E
N
N
S
W
E
S
E
N
E
W
N
S
S
S
E
E
N
N
S
S
W
S
W
W
S
E
S
S
S
N
E
E
W
W
N
N
W
N
W
E
E
E
S
E
N
S
E
E
E
W
S
S
S
W
W
E
N
S
S
N
E
S
S
E
S
S
E
S
S
E
...

result:

ok 2540 steps

Test #71:

score: 100
Accepted
time: 11ms
memory: 8020kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

010110110110100110000010010101111010111110110000000010000111101101111000100100100011101001100000010001010110001100100101010101000001101101001010100001001000000010001011100100100001100001110010110010011111000101011001111010100001001001001011001110110010011110000111011101001000001100111100010000011111...

input:

walk
0101101101101001100000100101011110101111101100000000100001111011011110001001001000111010011000000100010101100011001001010101010000011011010010101000010010000000100010111001001000011000011100101100100111110001010110011110101000010010010010110011101100100111100001110111010010000011001111000100000...

output:

E
E
N
N
N
E
W
W
S
N
W
E
N
W
E
S
E
N
E
N
N
N
E
E
E
S
W
W
E
E
N
E
N
S
E
E
E
N
E
N
S
E
N
E
W
S
W
S
S
N
E
E
S
W
S
S
W
N
S
E
S
E
S
E
W
N
E
W
W
N
N
N
E
S
N
N
E
N
N
N
W
E
S
S
W
E
S
S
E
E
S
E
N
N
E
N
W
E
N
W
N
W
N
W
S
S
S
E
S
W
E
N
W
N
E
W
N
N
E
S
E
S
E
N
E
S
E
E
S
E
E
N
W
N
W
N
S
E
S
E
S
E
N
E
S
E
S
W
W
W
...

result:

ok 2930 steps

Test #72:

score: 100
Accepted
time: 6ms
memory: 8084kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

101111010011010010100010001010110001101011000000100011010110010100010101100000011000010000001100101101101010000111100110111001100110101010100010011011010110111001010011100111001101010011001110011010010010001101010001000001110100110110100110110000000010111111110000110010011100000110001101100010001011...

input:

walk
1011110100110100101000100010101100011010110000001000110101100101000101011000000110000100000011001011011010100001111001101110011001101010101000100110110101101110010100111001110011010100110011100110100100100011010100010000011101001101101001101100000000101111111100001100100111000001100011011000100...

output:

N
N
E
W
S
E
E
E
E
W
N
W
N
S
E
E
N
W
E
N
N
E
S
N
W
W
S
W
W
S
W
N
N
S
S
E
N
E
E
N
N
N
W
W
N
W
N
E
N
S
W
N
N
N
S
S
S
S
E
S
S
E
S
W
E
N
W
W
N
S
E
N
E
E
E
E
S
E
N
E
E
S
E
S
S
W
N
S
E
N
E
N
S
W
N
W
N
E
E
E
N
E
E
N
S
S
S
S
E
E
E
N
N
E
N
N
W
N
S
E
E
S
N
W
S
W
E
S
S
N
E
S
E
E
N
W
N
E
N
E
W
S
W
N
N
S
S
S
E
E
...

result:

ok 4254 steps

Test #73:

score: 100
Accepted
time: 5ms
memory: 7960kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

100011001011100010010110001101000001010100010101111001101011001011111100101100001000010001110000101000110010111110000001111101010101100111010001111010110001110001101101000001000001111110101011011100111100001011101110101001010001110001111100110011010001000110101100011100010110100100010001101000011011...

input:

walk
1000110010111000100101100011010000010101000101011110011010110010111111001011000010000100011100001010001100101111100000011111010101011001110100011110101100011100011011010000010000011111101010110111001111000010111011101010010100011100011111001100110100010001101011000111000101101001000100011010000...

output:

E
E
E
N
E
S
E
E
W
W
N
W
N
W
S
N
W
S
N
N
N
W
S
S
N
N
E
N
N
S
E
E
E
N
W
E
S
E
E
E
E
W
S
E
S
E
S
S
E
E
S
E
W
N
W
N
S
W
S
E
W
N
W
S
N
N
W
E
S
E
N
N
E
N
N
W
N
N
N
W
N
N
S
E
W
S
E
S
E
E
W
N
E
W
N
E
E
N
E
S
E
E
W
S
W
E
S
S
E
E
E
N
E
E
E
S
N
W
N
N
N
N
N
S
W
N
N
S
S
E
S
S
S
E
E
N
N
W
S
N
E
E
S
E
E
N
E
E
W
N
...

result:

ok 3432 steps

Test #74:

score: 100
Accepted
time: 0ms
memory: 8048kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

111100110010001100111101110011011100011100110111000101010001010100100001111100110000101001001111000111010101001101100110110101101000100010110101001000110101000101011110010110101101100011010010101110010010110110011100110111010001111010100110110001011000100110010000100101110001100010110101000011010100...

input:

walk
1111001100100011001111011100110111000111001101110001010100010101001000011111001100001010010011110001110101010011011001101101011010001000101101010010001101010001010111100101101011011000110100101011100100101101100111001101110100011110101001101100010110001001100100001001011100011000101101010000110...

output:

N
E
N
S
S
E
E
E
W
W
N
N
S
E
E
N
W
E
E
N
N
E
S
E
W
N
W
S
S
E
S
E
S
E
N
E
S
N
N
N
N
N
N
E
N
S
W
S
W
N
N
W
W
W
W
W
W
N
W
W
E
E
S
W
S
W
S
E
W
N
N
S
E
N
E
E
E
E
S
S
W
S
N
N
S
W
N
W
E
S
S
W
N
S
W
E
S
W
W
N
S
S
N
E
E
N
E
N
E
E
N
N
N
N
N
S
S
W
W
E
E
E
E
N
E
S
E
E
W
S
N
N
E
W
S
W
N
N
E
E
N
N
W
E
E
W
S
E
E
E
...

result:

ok 2722 steps

Test #75:

score: 100
Accepted
time: 3ms
memory: 7972kb

input:

view
200
###################################################################################################################################################################################################################################################################################################...

output:

001110001101100001111111001011100010111011001001001101111111001010001100100111001001011110111000100001010101010000001100001101001010010100010101100011000001110101111111000010011101111100110011010001110100101011010000001011001100101010001101110100101001000111010101111001111000101010111000101000101001...

input:

walk
0011100011011000011111110010111000101110110010010011011111110010100011001001110010010111101110001000010101010100000011000011010010100101000101011000110000011101011111110000100111011111001100110100011101001010110100000010110011001010100011011101001010010001110101011110011110001010101110001010001...

output:

E
E
E
E
E
N
W
W
N
W
N
E
W
S
W
W
S
E
W
N
N
E
W
N
N
S
E
E
N
N
W
N
N
N
W
E
S
W
S
S
N
N
E
S
S
S
N
E
E
S
N
N
E
S
E
W
N
E
N
N
E
W
S
W
N
W
N
W
E
E
W
S
W
S
S
N
N
E
E
S
W
E
E
E
E
N
N
W
E
E
N
N
N
W
W
S
W
S
S
N
E
W
N
E
N
E
E
S
W
S
N
E
S
S
E
N
N
E
N
N
W
N
W
S
W
W
N
E
N
W
N
N
W
N
N
N
W
N
E
N
W
N
S
W
S
W
N
S
E
N
...

result:

ok 3336 steps