QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#325519#2352. Maze with a HintZhangYiDeAC ✓7ms3816kbC++202.9kb2024-02-11 15:58:192024-02-11 15:58:19

詳細信息

Test #1:

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

input:

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

output:

000000

input:

walk
000000
5
###
#..
###
#.#
...
###
#.#
...
#.#
#.#
..#
#.#
###
#..
#.#
#.#
...
###
###
...
#.#
###
...
###

output:

E
N
N
N
E
N
E
E

result:

ok 8 steps

Test #2:

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

input:

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

output:

110100

input:

walk
110100
5
#.#
#.#
###
#.#
#..
#.#
#.#
...
#.#
#.#
..#
#.#
#.#
#..
#.#
#.#
#.#
#.#
###
...
#.#
###
...
###

output:

N
E
E
N
N
N
E
E

result:

ok 8 steps

Test #3:

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

input:

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

output:

1110

input:

walk
1110
5
#.#
#..
###
#.#
...
###
###
...
###
#.#
..#
###
###
#..
#.#
#.#
..#
#.#
#.#
..#
#.#
###
..#
#.#
#.#
#..
###
###
#..
#.#

output:

E
E
E
N
E
N
N
W
N
E

result:

ok 10 steps

Test #4:

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

input:

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

output:

000

input:

walk
000
5
###
#..
###
#.#
..#
###
#.#
#.#
#.#
###
#..
#.#
#.#
...
###
#.#
#..
#.#
###
...
#.#
###
...
###

output:

E
N
N
E
N
N
E
E

result:

ok 8 steps

Test #5:

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

input:

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

output:

00

input:

walk
00
5
#.#
#..
###
#.#
#.#
#.#
###
#..
#.#
#.#
...
###
###
#..
#.#
###
...
###
###
..#
#.#
#.#
#..
###
#.#
..#
###
#.#
#.#
#.#

output:

N
N
E
N
E
E
S
E
N
N

result:

ok 10 steps

Test #6:

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

input:

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

output:

0100101

input:

walk
0100101
5
###
#..
###
#.#
..#
###
###
...
#.#
#.#
...
#.#
#.#
...
#.#
#.#
#..
#.#
#.#
#..
#.#
#.#
..#
###

output:

E
N
E
E
N
N
E
N

result:

ok 8 steps

Test #7:

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

input:

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

output:

01111

input:

walk
01111
5
#.#
#.#
###
###
#..
#.#
###
...
###
#.#
...
#.#
#.#
#..
#.#
#.#
...
###
#.#
..#
#.#
#.#
#.#
#.#

output:

N
E
E
N
E
E
N
N

result:

ok 8 steps

Test #8:

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

input:

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

output:

0101111

input:

walk
0101111
7
###
#..
###
#.#
..#
###
###
...
#.#
###
...
###
#.#
..#
#.#
#.#
...
#.#
#.#
..#
#.#
#.#
#..
#.#
###
...
###
#.#
..#
#.#
#.#
#.#
#.#
#.#
#.#
#.#

output:

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

result:

ok 12 steps

Test #9:

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

input:

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

output:

001101101010000

input:

walk
001101101010000
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: 1ms
memory: 3736kb

input:

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

output:

110001110000

input:

walk
110001110000
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: 1ms
memory: 3800kb

input:

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

output:

1100100101010

input:

walk
1100100101010
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: 3536kb

input:

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

output:

00001101000000010010

input:

walk
00001101000000010010
14
#.#
#..
###
#.#
#.#
#.#
#.#
#..
#.#
#.#
#.#
#.#
#.#
#..
#.#
#.#
#.#
#.#
#.#
#..
#.#
#.#
#.#
#.#
#.#
#.#
#.#
#.#
#..
#.#
###
...
###
###
...
###
#.#
...
#.#
#.#
...
###
#.#
...
#.#
#.#
#.#
#.#
#.#
...
###
#.#
..#
###
###
#..
#.#
#.#
..#
#.#
#.#
#..
#.#
#.#
#..
#.#
#.#
......

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: 1ms
memory: 3800kb

input:

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

output:

0010000101001010011110100111

input:

walk
0010000101001010011110100111
14
###
#..
###
###
...
###
#.#
..#
###
###
...
#.#
#.#
..#
###
#.#
#..
#.#
#.#
#.#
#.#
###
...
#.#
#.#
#..
###
#.#
#..
#.#
#.#
#..
#.#
#.#
#..
#.#
#.#
...
#.#
#.#
...
###
#.#
#.#
#.#
###
...
#.#
###
...
###
#.#
...
###
#.#
#.#
#.#
#.#
...
#.#
###
...
#.#
#.#
#..
###...

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: 3608kb

input:

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

output:

001011110011000111011111011010110101

input:

walk
001011110011000111011111011010110101
21
###
#..
###
#.#
...
###
#.#
...
#.#
###
...
###
###
...
###
#.#
...
#.#
#.#
#.#
#.#
#.#
#..
#.#
#.#
..#
#.#
#.#
#..
#.#
###
..#
#.#
#.#
#..
#.#
#.#
#..
###
###
...
###
#.#
...
###
#.#
#..
#.#
###
...
###
#.#
...
#.#
###
...
###
#.#
...
###
###
#..
#.#
#.#...

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: 3604kb

input:

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

output:

01001011011011001110111001011101000

input:

walk
01001011011011001110111001011101000
21
#.#
#..
###
#.#
#.#
#.#
#.#
#..
#.#
#.#
..#
###
#.#
#..
#.#
#.#
..#
#.#
#.#
#..
#.#
###
...
#.#
#.#
#..
###
###
...
#.#
###
...
###
###
...
###
#.#
...
#.#
#.#
..#
#.#
#.#
#..
#.#
###
...
###
#.#
...
###
###
#..
#.#
#.#
...
###
###
...
#.#
#.#
...
###
#.#
...

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: 1ms
memory: 3604kb

input:

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

output:

000100110110100000111011110100010010011100000001111011110011

input:

walk
000100110110100000111011110100010010011100000001111011110011
33
###
#..
###
#.#
...
###
#.#
..#
#.#
#.#
...
#.#
#.#
..#
###
#.#
#..
#.#
#.#
..#
#.#
###
#..
#.#
###
...
###
#.#
...
###
#.#
..#
#.#
#.#
#..
#.#
#.#
#.#
#.#
#.#
..#
#.#
#.#
#..
###
#.#
#.#
#.#
###
...
#.#
#.#
...
#.#
###
#..
#.#
#.#...

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
W
N
W
W
W
N
N
N
N
E
S
S
E
N
N
E
E
E
N
W
N
E
N
E
E
E

result:

ok 104 steps

Test #17:

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

input:

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

output:

0010110010101011010010001110000011001100000011111101110

input:

walk
0010110010101011010010001110000011001100000011111101110
33
#.#
#.#
###
#.#
#..
#.#
#.#
#..
#.#
###
#..
#.#
#.#
..#
###
#.#
#.#
#.#
###
#..
#.#
#.#
..#
###
###
#..
#.#
#.#
...
###
#.#
..#
#.#
#.#
..#
###
###
#..
#.#
#.#
#..
###
###
...
#.#
#.#
...
###
###
...
###
#.#
..#
#.#
#.#
#.#
#.#
#.#
...
...

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: 1ms
memory: 3760kb

input:

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

output:

1111010001011111010000011110010000000111000101101010001010011001011100010111010110000001101101100010000000000000000001100110001101101111111010000000000010000000000

input:

walk
1111010001011111010000011110010000000111000101101010001010011001011100010111010110000001101101100010000000000000000001100110001101101111111010000000000010000000000
74
#.#
#.#
###
###
#..
#.#
###
...
#.#
#.#
..#
#.#
#.#
#..
#.#
###
...
###
###
...
###
###
...
###
#.#
..#
#.#
###
#..
#.#
#.#
...
...

output:

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

result:

ok 260 steps

Test #19:

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

input:

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

output:

01011111010001010100100000000011001000011100011011010101011110011000100100001000001000101101001000000000000001111111011011111111000000011100000101110000011001000010101101000101110100100110100111000011011000010111

input:

walk
01011111010001010100100000000011001000011100011011010101011110011000100100001000001000101101001000000000000001111111011011111111000000011100000101110000011001000010101101000101110100100110100111000011011000010111
74
###
#..
###
###
...
###
#.#
..#
###
###
...
#.#
#.#
..#
#.#
###
...
#.#
###
......

output:

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

result:

ok 330 steps

Test #20:

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

input:

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

output:

00011110001111100000001100100100010000000100111000000001000101010011001100100101100100000101101010011100001111011110110001001000001001111010001110010101111011100011000110010101001000101100111010100101

input:

walk
00011110001111100000001100100100010000000100111000000001000101010011001100100101100100000101101010011100001111011110110001001000001001111010001110010101111011100011000110010101001000101100111010100101
71
###
#..
###
#.#
...
###
#.#
#.#
#.#
#.#
..#
#.#
###
..#
#.#
#.#
#..
###
#.#
#..
#.#
#.#
#.#...

output:

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

result:

ok 322 steps

Test #21:

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

input:

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

output:

00111101111010000100001110010110100100001101011100001110110011010110111110000101100010000011111000010000010001001111001011000110011000000111010100001100100001011111

input:

walk
00111101111010000100001110010110100100001101011100001110110011010110111110000101100010000011111000010000010001001111001011000110011000000111010100001100100001011111
71
###
#..
###
#.#
...
###
###
..#
#.#
#.#
#..
###
#.#
#..
#.#
#.#
#..
#.#
#.#
...
###
###
...
###
###
...
#.#
#.#
..#
###
#.#
#.....

output:

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

result:

ok 266 steps

Test #22:

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

input:

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

output:

10001011001110001011010011100011101101100011110111011011101001110110101000000010101010001010100100000010011101011000101000101010101011101001000001000100110010101101101101000001011010001001100101100000101000110001110001010000110000101011001110100

input:

walk
10001011001110001011010011100011101101100011110111011011101001110110101000000010101010001010100100000010011101011000101000101010101011101001000001000100110010101101101101000001011010001001100101100000101000110001110001010000110000101011001110100
107
###
#..
###
###
...
###
#.#
..#
###
###
...
#...

output:

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

result:

ok 390 steps

Test #23:

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

input:

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

output:

0001000000000011101011000101010000011000111111111100101011010011000111110001100000000000010100011010001001001010101010001110001101101011010101110001010001010111110100000101001100101110101000110100010010010100010010110101011110111100001101100001000000101000011010101100010010

input:

walk
0001000000000011101011000101010000011000111111111100101011010011000111110001100000000000010100011010001001001010101010001110001101101011010101110001010001010111110100000101001100101110101000110100010010010100010010110101011110111100001101100001000000101000011010101100010010
107
#.#
#.#
###
###
...

output:

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

result:

ok 434 steps

Test #24:

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

input:

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

output:

010001101011000011010010101000011011010110001011110110010111110011001001100100110011011011010000000000101000001100001001100001111000000001101001010101000001101010110011000000000001101000111001000111111100001101101001010111101010000110000001111010100100001001101100010101010101011010111000110110101100...

input:

walk
0100011010110000110100101010000110110101100010111101100101111100110010011001001100110110110100000000001010000011000010011000011110000000011010010101010000011010101100110000000000011010001110010001111111000011011010010101111010100001100000011110101001000010011011000101010101010110101110001101101...

output:

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

result:

ok 610 steps

Test #25:

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

input:

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

output:

010001010010011011010101110011101100000000101000000111000000110101111010001111011101011101110100011001101000000011000011110100001010100001101010110001001111011001111001000011111110110010111000100001110110010110101110101010111000101101101000101100000111010011101010110100101001101111101111101100110101...

input:

walk
0100010100100110110101011100111011000000001010000001110000001101011110100011110111010111011101000110011010000000110000111101000010101000011010101100010011110110011110010000111111101100101110001000011101100101101011101010101110001011011010001011000001110100111010101101001010011011111011111011001...

output:

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

result:

ok 610 steps

Test #26:

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

input:

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

output:

101001001101011010111100110101000001011111011010111101001000110110110110110101100101100011100001110010111101011001010101100000000000011101100001011001111010010100101010110100010101010010100110000111100010100101111000000100000100000010000011101000011110000000101010101010000001101010110110110101110001...

input:

walk
1010010011010110101111001101010000010111110110101111010010001101101101101101011001011000111000011100101111010110010101011000000000000111011000010110011110100101001010101101000101010100101001100001111000101001011110000001000001000000100000111010000111100000001010101010100000011010101101101101011...

output:

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

result:

ok 1172 steps

Test #27:

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

input:

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

output:

110000000100010101101010101001010000011000100100001101000001101100110001000011111000001000100000000110110001000100001110000110111001101010010001011101101100010110100111010101011110010111001010011011100000111011010001101111001011100110100101011010100101100101001001001100011110101101100100011001010110...

input:

walk
1100000001000101011010101010010100000110001001000011010000011011001100010000111110000010001000000001101100010001000011100001101110011010100100010111011011000101101001110101010111100101110010100110111000001110110100011011110010111001101001010110101001011001010010010011000111101011011001000110010...

output:

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

result:

ok 888 steps

Test #28:

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

input:

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

output:

010001110110111110100000101110011101110000000101000111001111100110100010001100111011101011001110100100101100100110001100000101010011110101000100110111010100111100001101011000110010100101110010000100001011010101010010001100001100000011010001010000101101111100000011100110000010011001110011000111010100...

input:

walk
0100011101101111101000001011100111011100000001010001110011111001101000100011001110111010110011101001001011001001100011000001010100111101010001001101110101001111000011010110001100101001011100100001000010110101010100100011000011000000110100010100001011011111000000111001100000100110011100110001110...

output:

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

result:

ok 844 steps

Test #29:

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

input:

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

output:

001101010000110110111000110100110001100010110111010100000010000110110011000001110101000100000010010011100011101110001101010001010111010010111011001010101100010100100101001011001001010111011000111001000001110100101010110010001101111101001110111101000001000101011111101101111001000111101001101000000011...

input:

walk
0011010100001101101110001101001100011000101101110101000000100001101100110000011101010001000000100100111000111011100011010100010101110100101110110010101011000101001001010010110010010101110110001110010000011101001010101100100011011111010011101111010000010001010111111011011110010001111010011010000...

output:

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

result:

ok 1198 steps

Test #30:

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

input:

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

output:

110011100101100101010000101100000100001110111000010101010000101000000010110110110110000011101001101010011000001010001001000100000011001000100010000001101101000010111001111111111101001110110000010111110001000010000000000110000011010100101101010110100000101101100000001110101101010000001000110000000101...

input:

walk
1100111001011001010100001011000001000011101110000101010100001010000000101101101101100000111010011010100110000010100010010001000000110010001000100000011011010000101110011111111111010011101100000101111100010000100000000001100000110101001011010101101000001011011000000011101011010100000010001100000...

output:

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

result:

ok 1394 steps

Test #31:

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

input:

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

output:

000001001111001110101000100011101100010101110110000010000010000110010011000000011011100100101100000010110100011001100110010011010001001101110100100100001000000000100010110100000010100001011010001100000010000111010011111011100111100010000100000100100010010010100011000011001101100010100000000000110110...

input:

walk
0000010011110011101010001000111011000101011101100000100000100001100100110000000110111001001011000000101101000110011001100100110100010011011101001001000010000000001000101101000000101000010110100011000000100001110100111110111001111000100001000001001000100100101000110000110011011000101000000000001...

output:

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

result:

ok 918 steps

Test #32:

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

input:

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

output:

000100100001110000101100000000011010010101000000101000010100111011110011000110010011000000110110000001001010000001001110110000000110000000011010110101101100110001000000000000000000000010101000100000100010000000000100110001010001000100000010101000111010001101000111101111110001111011110000011110111010...

input:

walk
0001001000011100001011000000000110100101010000001010000101001110111100110001100100110000001101100000010010100000010011101100000001100000000110101101011011001100010000000000000000000000101010001000001000100000000001001100010100010001000000101010001110100011010001111011111100011110111100000111101...

output:

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

result:

ok 872 steps

Test #33:

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

input:

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

output:

011001010111001001001010011100110010101011001010001101111011100111110101100001101000000100000100000110000000010000001010100101000111001001000000110101011110111010000001101100001010001100101100101110101001101010001010011110110010001101001100101100101001000000000000001110010110110100111110010000000101...

input:

walk
0110010101110010010010100111001100101010110010100011011110111001111101011000011010000001000001000001100000000100000010101001010001110010010000001101010111101110100000011011000010100011001011001011101010011010100010100111101100100011010011001011001010010000000000000011100101101101001111100100000...

output:

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

result:

ok 1094 steps

Test #34:

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

input:

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

output:

100100001110111111000011100011101000100110010001100000100101010001000000011101001101000010110100111111001110100001100101101111100101110100111010111100110001011100101001101000011111111001110000110001101101001011101000000000010000110011010010111001111000111000001001001010101010010100110011100010110101...

input:

walk
1001000011101111110000111000111010001001100100011000001001010100010000000111010011010000101101001111110011101000011001011011111001011101001110101111001100010111001010011010000111111110011100001100011011010010111010000000000100001100110100101110011110001110000010010010101010100101001100111000101...

output:

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

result:

ok 1068 steps

Test #35:

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

input:

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

output:

110000110010100101000011111111100011100110001011010101000101010100101000100001011000001111110110101001001001111100010001111111110100010111010000100110011011110011010111100001111111111000000100100010001010001001101011101100000110101101111100100001111001101110001001100110101010101110100001111101100100...

input:

walk
1100001100101001010000111111111000111001100010110101010001010101001010001000010110000011111101101010010010011111000100011111111101000101110100001001100110111100110101111000011111111110000001001000100010100010011010111011000001101011011111001000011110011011100010011001101010101011101000011111011...

output:

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

result:

ok 956 steps

Test #36:

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

input:

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

output:

011010010110001000101010011111010100001001010010000010111001000001000101110100101111010111010011110010001101011011011001011001010100100011110100001010011111011110000110000010100110011011111110100101110000010111010111000100111100001001001000111011000001101101100110000010010000001000010110111110111010...

input:

walk
0110100101100010001010100111110101000010010100100000101110010000010001011101001011110101110100111100100011010110110110010110010101001000111101000010100111110111100001100000101001100110111111101001011100000101110101110001001111000010010010001110110000011011011001100000100100000010000101101111101...

output:

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

result:

ok 818 steps

Test #37:

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

input:

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

output:

101100110011110010000100101000001000011001100101000001001001001000100011000011111111010010011010110000110010010011110000000010000111101000110110111101001000101010001000000000011011111000000000001011001011101011000000101010010100110010011101010010010111010101010101010101011010010111011010010010000011...

input:

walk
1011001100111100100001001010000010000110011001010000010010010010001000110000111111110100100110101100001100100100111100000000100001111010001101101111010010001010100010000000000110111110000000000010110010111010110000001010100101001100100111010100100101110101010101010101010110100101110110100100100...

output:

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

result:

ok 942 steps

Test #38:

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

input:

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

output:

010010011111001010100101100110010101000000101110111010110111001110000110110110010100000000011110111011101101011100101000110101010001011100111101011001101111000100000000010011101100011110011111111100000000011001011010001101000001100111010011000101101100100110000101101000110011100100111010001101100111...

input:

walk
0100100111110010101001011001100101010000001011101110101101110011100001101101100101000000000111101110111011010111001010001101010100010111001111010110011011110001000000000100111011000111100111111111000000000110010110100011010000011001110100110001011011001001100001011010001100111001001110100011011...

output:

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

result:

ok 1230 steps

Test #39:

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

input:

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

output:

001010010010000000000000110000010110001101101100000100001010110010110100110010010011001010010011110101110110101100011000010011011101110100000010101001110100111101001101000010100101010001010110000010000011110010000101011010010110100011000001011011111100101101110101000001001001100011011010011000000010...

input:

walk
0010100100100000000000001100000101100011011011000001000010101100101101001100100100110010100100111101011101101011000110000100110111011101000000101010011101001111010011010000101001010100010101100000100000111100100001010110100101101000110000010110111111001011011101010000010010011000110110100110000...

output:

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

result:

ok 994 steps

Test #40:

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

input:

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

output:

001100010101111101000010010001000110001111110001101110101101010101010111110101010101100100001010000001110110111000010111000001010000110000001010100100001010001101100011111101001100100010100001111011001010100111000101000001010110110111011010000000001000000000111010000110110010111011110111011010100011...

input:

walk
0011000101011111010000100100010001100011111100011011101011010101010101111101010101011001000010100000011101101110000101110000010100001100000010101001000010100011011000111111010011001000101000011110110010101001110001010000010101101101110110100000000010000000001110100001101100101110111101110110101...

output:

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

result:

ok 842 steps

Test #41:

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

input:

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

output:

000010001101010000010000001111111100100011001100111110001100000000110000010000010010000100000110110100101000100000001100010101010011101111000101000011100111010101001010011010000100110101010100110101010110010000111011011110111010100101011010110010100000110010110101000010011010111101110011001000000011...

input:

walk
0000100011010100000100000011111111001000110011001111100011000000001100000100000100100001000001101101001010001000000011000101010100111011110001010000111001110101010010100110100001001101010101001101010101100100001110110111101110101001010110101100101000001100101101010000100110101111011100110010000...

output:

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

result:

ok 784 steps

Test #42:

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

input:

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

output:

110100011001100000101100001101110101111010000111110010001100110100100100001000000001001000101111000110100010000011111100001000101000000110000110010110011111100111101111001001011001110010101010011011011110011111000010110100101111110010100010111111000001001100001110101011011011000001011001111001001010...

input:

walk
1101000110011000001011000011011101011110100001111100100011001101001001000010000000010010001011110001101000100000111111000010001010000001100001100101100111111001111011110010010110011100101010100110110111100111110000101101001011111100101000101111110000010011000011101010110110110000010110011110010...

output:

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

result:

ok 850 steps

Test #43:

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

input:

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

output:

111010101001000101111100101110011110101100010100000111100010000010001111100011000110011100011001111101010010011010100011001011100000010110100101101000010001010001011010001101101101000100001010001110101001000000101101001110011011000011010101101011010000110000010110110010010110000100111110111000101001...

input:

walk
1110101010010001011111001011100111101011000101000001111000100000100011111000110001100111000110011111010100100110101000110010111000000101101001011010000100010100010110100011011011010001000010100011101010010000001011010011100110110000110101011010110100001100000101101100100101100001001111101110001...

output:

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

result:

ok 914 steps

Test #44:

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

input:

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

output:

010001010010011101100010110010000011000011000001011001101000001111100001101011010100101111011001000100010000011010100000000011101000111100001001001000111001000010000010000001110100001100000000011111100000000111110000010011001101100000000000011001010001101101001011011010000001100010111101000000010111...

input:

walk
0100010100100111011000101100100000110000110000010110011010000011111000011010110101001011110110010001000100000110101000000000111010001111000010010010001110010000100000100000011101000011000000000111111000000001111100000100110011011000000000000110010100011011010010110110100000011000101111010000000...

output:

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

result:

ok 858 steps

Test #45:

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

input:

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

output:

100000100101100101101101011110010100011011111011101101110100111111101000010100011101010011101101011011010011101101001100011100000001100110101110001100000010100001100010101011011111010111110111011101100000110100011101011000101000100100100001100010100001000010101100100101010000010101011000010100000010...

input:

walk
1000001001011001011011010111100101000110111110111011011101001111111010000101000111010100111011010110110100111011010011000111000000011001101011100011000000101000011000101010110111110101111101110111011000001101000111010110001010001001001000011000101000010000101011001001010100000101010110000101000...

output:

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

result:

ok 1122 steps

Test #46:

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

input:

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

output:

001100010010001111110100001001010010011111101000000010110010101011101111000010100101101110011010100111011100011010111110101100110111111100101011000010010001101000101000001010110100000000110110110100000101011011011011100100101001100100001001010100100100001100100100011010010101000010010100111010100110...

input:

walk
0011000100100011111101000010010100100111111010000000101100101010111011110000101001011011100110101001110111000110101111101011001101111111001010110000100100011010001010000010101101000000001101101101000001010110110110111001001010011001000010010101001001000011001001000110100101010000100101001110101...

output:

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

result:

ok 950 steps

Test #47:

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

input:

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

output:

101001101011010000010110111010110101100101111000010101000010001001101101011100111100001010111011111000101100000010110000110000000000000110111101110111011100111101010110001111100001110010111110110010000110101001110100000000110101010001010100001001011001011000110101101001000111100110100100000010010001...

input:

walk
1010011010110100000101101110101101011001011110000101010000100010011011010111001111000010101110111110001011000000101100001100000000000001101111011101110111001111010101100011111000011100101111101100100001101010011101000000001101010100010101000010010110010110001101011010010001111001101001000000100...

output:

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

result:

ok 884 steps

Test #48:

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

input:

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

output:

101010010011001010001011000101101000011010101111000100110001000010101011100011110111011101111000111001000000000010010111010100011110010010010010110001000001000000011110110010000010010000001000001110100000000000111010000100010000110011000011110101000010110100011110101100101000011000001011001010011111...

input:

walk
1010100100110010100010110001011010000110101011110001001100010000101010111000111101110111011110001110010000000000100101110101000111100100100100101100010000010000000111101100100000100100000010000011101000000000001110100001000100001100110000111101010000101101000111101011001010000110000010110010100...

output:

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

result:

ok 758 steps

Test #49:

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

input:

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

output:

001010111110011100101110011111000000000000001000100001101001110001011111000010000000100000100100110110100011011111010000111010000101110011111011010011011010000010001100101111101001010111110101000001101001001011001100100000010010110010000010000000111010111011101011011000001010010101000001111111110010...

input:

walk
0010101111100111001011100111110000000000000010001000011010011100010111110000100000001000001001001101101000110111110100001110100001011100111110110100110110100000100011001011111010010101111101010000011010010010110011001000000100101100100000100000001110101110111010110110000010100101010000011111111...

output:

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

result:

ok 832 steps

Test #50:

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

input:

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

output:

110110111110111101111100010000000000000110100011110000010000001101000011101110111111110000110000100000110001000100000110000000000100110010100001101000011010101111101110111000000010000000001000000111000011101110000000100000000001110110010110101010110101010100101101100000000100100100010100011101111101...

input:

walk
1101101111101111011111000100000000000001101000111100000100000011010000111011101111111100001100001000001100010001000001100000000001001100101000011010000110101011111011101110000000100000000010000001110000111011100000001000000000011101100101101010101101010101001011011000000001001001000101000111011...

output:

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

result:

ok 1098 steps

Test #51:

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

input:

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

output:

101000010111110110010010100101000001011000011010011100000010100001101100100100010010000011101100111110001110001110101101111000100111000010101001110100111011110011011011000000010100110101011011010001000010101100110000100110001001011101110001101000100101100010010001101010101011111011111101000100011010...

input:

walk
1010000101111101100100101001010000010110000110100111000000101000011011001001000100100000111011001111100011100011101011011110001001110000101010011101001110111100110110110000000101001101010110110100010000101011001100001001100010010111011100011010001001011000100100011010101010111110111111010001000...

output:

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

result:

ok 1060 steps

Test #52:

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

input:

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

output:

011110110001101000000010010011111111110010110001010000110001000101110001111010011101010100011001000011100000000001010100100000010111110010000100010100011000001010000011000111000100010000100010101001100110111011111010000111101101100010010000000100101101000111010000000110110001011000000011100101110011...

input:

walk
0111101100011010000000100100111111111100101100010100001100010001011100011110100111010101000110010000111000000000010101001000000101111100100001000101000110000010100000110001110001000100001000101010011001101110111110100001111011011000100100000001001011010001110100000001101100010110000000111001011...

output:

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

result:

ok 1044 steps

Test #53:

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

input:

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

output:

010000110000111100111011010110101110100001010110001010101100110000000011100010011111000000011000010100010100001100100000000011101110000000001000000000110011110011100001011011001000000100100100000010011111100111100101100000000101000110011001101001001111101100100000010000011100000111111100010010000010...

input:

walk
0100001100001111001110110101101011101000010101100010101011001100000000111000100111110000000110000101000101000011001000000000111011100000000010000000001100111100111000010110110010000001001001000000100111111001111001011000000001010001100110011010010011111011001000000100000111000001111111000100100...

output:

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

result:

ok 952 steps

Test #54:

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

input:

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

output:

110000010011101111000000011001001010000010001100010010011110010000000000001000011100011010010011010000111110101000010111011100111100010111010100001111111011100000111110101010000110011101110100111111000111100000000010001000000010000010111110001011000100100001001010001001000011100010101111011101010010...

input:

walk
1100000100111011110000000110010010100000100011000100100111100100000000000010000111000110100100110100001111101010000101110111001111000101110101000011111110111000001111101010100001100111011101001111110001111000000000100010000000100000101111100010110001001000010010100010010000111000101011110111010...

output:

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

result:

ok 1298 steps

Test #55:

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

input:

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

output:

101111001010000000010010100110100110001110001011101101100000001111011101000101010101010000011011000011010000010110100111011110110000100110010100101001000100001110111101000000010100001101010101110111000001111100001001000000101001010001100100001011000010011011001001111001101010110100011011101001100000...

input:

walk
1011110010100000000100101001101001100011100010111011011000000011110111010001010101010100000110110000110100000101101001110111101100001001100101001010010001000011101111010000000101000011010101011101110000011111000010010000001010010100011001000010110000100110110010011110011010101101000110111010011...

output:

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

result:

ok 836 steps

Test #56:

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

input:

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

output:

111111011110111001000000011010000100001111010100110110100111010011000010011110001100100100000001100001111011101100000000001101100000001001001001100000010110001000000101101001000000011101111101101011000111110000011100010110100000001001101111000110000000010000100011010100111000001111111011010110101000...

input:

walk
1111110111101110010000000110100001000011110101001101101001110100110000100111100011001001000000011000011110111011000000000011011000000010010010011000000101100010000001011010010000000111011111011010110001111100000111000101101000000010011011110001100000000100001000110101001110000011111110110101101...

output:

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

result:

ok 936 steps

Test #57:

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

input:

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

output:

001111110001101110111100111100100101100110001101100011010110110100101001100000000011011010101000000000010011101110100110110111110000000101011010111111000000101001000110101111010101001111000100101110001100110110110010000110100011010100010001011011000110110110000010001101001100100010100010010110001101...

input:

walk
0011111100011011101111001111001001011001100011011000110101101101001010011000000000110110101010000000000100111011101001101101111100000001010110101111110000001010010001101011110101010011110001001011100011001101101100100001101000110101000100010110110001101101100000100011010011001000101000100101100...

output:

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

result:

ok 1028 steps

Test #58:

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

input:

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

output:

110011110101101110100001011111101110011000011010111101000100000110110111011111100110110011111101110111111011001010000101010111101111001111001101011100001101101000101101100110000000001010001000110000000010001111110010011011000001010000011101000001001100101110110101010001000101001001100000011011000001...

input:

walk
1100111101011011101000010111111011100110000110101111010001000001101101110111111001101100111111011101111110110010100001010101111011110011110011010111000011011010001011011001100000000010100010001100000000100011111100100110110000010100000111010000010011001011101101010100010001010010011000000110110...

output:

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

result:

ok 1246 steps

Test #59:

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

input:

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

output:

000100011101101100101000010000110100011011100011010111010001101101110000001101001000011101000100101100010100100001001111011101010110010101000001111010000011110010110101001011110011101100100100011110010110110101010111101111000111010010101100101001000000001011001100110010110011011001001101000000100000...

input:

walk
0001000111011011001010000100001101000110111000110101110100011011011100000011010010000111010001001011000101001000010011110111010101100101010000011110100000111100101101010010111100111011001001000111100101101101010101111011110001110100101011001010010000000010110011001100101100110110010011010000001...

output:

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

result:

ok 676 steps

Test #60:

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

input:

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

output:

010101111011000010011000001110100111111100010001010101011001010000100111110010100110101110101000101000010111111100001001100110000011011110001010110111100110000010000000011101110011101100100111100011111100001001110110000110111111101000000101110000000001100101100111101010101010000010000110010101110101...

input:

walk
0101011110110000100110000011101001111111000100010101010110010100001001111100101001101011101010001010000101111111000010011001100000110111100010101101111001100000100000000111011100111011001001111000111111000010011101100001101111111010000001011100000000011001011001111010101010100000100001100101011...

output:

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

result:

ok 740 steps

Test #61:

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

input:

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

output:

100101000000000111111000110111101100000111000111011111110011101110100101110101100010110011010000100101101111101001011000000110101010111001001000111011101010100000111110100000001011111001001010101101101010101110011101000011011011000000010101000100000100100000001011101110101101100001000000111110101000...

input:

walk
1001010000000001111110001101111011000001110001110111111100111011101001011101011000101100110100001001011011111010010110000001101010101110010010001110111010101000001111101000000010111110010010101011011010101011100111010000110110110000000101010001000001001000000010111011101011011000010000001111101...

output:

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

result:

ok 854 steps

Test #62:

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

input:

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

output:

100010100111100110001110100010000100101101100111000000000111010000110000011001011000001010010101000101000000000010110100000000010101010101100001101100001000011000010010111000111010101110111010101001000110101011011101101001001000101110110100001110110100000111100010101110000101001010110100001001100010...

input:

walk
1000101001111001100011101000100001001011011001110000000001110100001100000110010110000010100101010001010000000000101101000000000101010101011000011011000010000110000100101110001110101011101110101010010001101010110111011010010010001011101101000011101101000001111000101011100001010010101101000010011...

output:

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

result:

ok 702 steps

Test #63:

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

input:

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

output:

010000111101000101001101011000101010000000011111100100011011110001100101010010011100000111101101001111110101111100011010001000111010011011010100101011110100110111100011000010101101010111100000111010101110101011000011001100001100000101001100011000000111000000010101000100000110010000000101000010101010...

input:

walk
0100001111010001010011010110001010100000000111111001000110111100011001010100100111000001111011010011111101011111000110100010001110100110110101001010111101001101111000110000101011010101111000001110101011101010110000110011000011000001010011000110000001110000000101010001000001100100000001010000101...

output:

E
N
N
E
E
N
E
E
S
E
S
E
E
E
E
E
N
E
N
W
N
W
N
N
E
N
E
E
E
S
E
S
E
N
E
E
N
W
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
S
S
E
E
S
E
S
S
E
N
E
E
N
W
N
N
W
W
N
N
E
E
N
W
N
E
E
N
E
E
N
E
E
E
N
N
N
E
E
N
E
E
N
E
S
E
E
S
S
S
E
N
N
E
N
N
W
W
N
E
N
N
E
E
N
N
N
N
N
E
N
W
W
W
N
W
W
N
E
N
N
N
W
...

result:

ok 988 steps

Test #64:

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

input:

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

output:

100000010010000000100000001000011001111000110100101000101010110101101100100101010010101011010001100100001011001000001101111010110101001101010010011110100000011111010000001110010000011000100001000110010000000101110111111110010010100010101111110100100101010001111100110001011101111101101010100001110101...

input:

walk
1000000100100000001000000010000110011110001101001010001010101101011011001001010100101010110100011001000010110010000011011110101101010011010100100111101000000111110100000011100100000110001000010001100100000001011101111111100100101000101011111101001001010100011111001100010111011111011010101000011...

output:

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

result:

ok 802 steps

Test #65:

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

input:

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

output:

100010010101011011011010101000101010011000000011100000010100101011010010111001100011010100010011100101000100000011111101000001000101110110000011011000110111001111000011111000111111000000001111001010110011100101011010100101000000110000000110010010001100100111001111110110100001011001110010100000101010...

input:

walk
1000100101010110110110101010001010100110000000111000000101001010110100101110011000110101000100111001010001000000111111010000010001011101100000110110001101110011110000111110001111110000000011110010101100111001010110101001010000001100000001100100100011001001110011111101101000010110011100101000001...

output:

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

result:

ok 766 steps

Test #66:

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

input:

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

output:

101010001111101010101000100001110011010010011110001001101110110010000001011011100111111000101011001001101011100111110011000111010100011010010111001101101101111101010100010111000001110010010111010100001101100101010110110000100001000110100000100010110011000010001010101111001100111101010110110001001010...

input:

walk
1010100011111010101010001000011100110100100111100010011011101100100000010110111001111110001010110010011010111001111100110001110101000110100101110011011011011111010101000101110000011100100101110101000011011001010101101100001000010001101000001000101100110000100010101011110011001111010101101100010...

output:

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

result:

ok 938 steps

Test #67:

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

input:

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

output:

100101000000110110011011101101010100000110010001100011000110011010101010100010000011001110100011011111000111101110101100101100001000110010101100001000000001111010100000011010110100011111011000100100000100010011011011001011001000000000100000010100010111101101101011001101111011100110001100001011000000...

input:

walk
1001010000001101100110111011010101000001100100011000110001100110101010101000100000110011101000110111110001111011101011001011000010001100101011000010000000011110101000000110101101000111110110001001000001000100110110110010110010000000001000000101000101111011011010110011011110111001100011000010110...

output:

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

result:

ok 1044 steps

Test #68:

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

input:

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

output:

000011010000111001111111001011011110010010111011111110000000011100000011110011101011101001010100000110101001011011000010100011010010001011010000001000110101110111011101010111000101110000001001101000001000111100110100110010010111001001111011100000000101000001001011001110101011000101000111101000110001...

input:

walk
0000110100001110011111110010110111100100101110111111100000000111000000111100111010111010010101000001101010010110110000101000110100100010110100000010001101011101110111010101110001011100000010011010000010001111001101001100100101110010011110111000000001010000010010110011101010110001010001111010001...

output:

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

result:

ok 698 steps

Test #69:

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

input:

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

output:

111100001000011100111111000110001011110000100011100110010110001100110110111000100100100101011110001101011110110111011000111000111000000100001101101111000110111100111010110000000011101000011010011100000111011010110110101010101000011111001000010010101001011011000100110010010010110111010111011100111101...

input:

walk
1111000010000111001111110001100010111100001000111001100101100011001101101110001001001001010111100011010111101101110110001110001110000001000011011011110001101111001110101100000000111010000110100111000001110110101101101010101010000111110010000100101010010110110001001100100100101101110101110111001...

output:

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

result:

ok 840 steps

Test #70:

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

input:

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

output:

010111110000001100000110001110011011010100110000110111101010000000000001100000001110011101111001010111111000010110100000011111011010000000010011110010111000011000001110100000000101110101001001000000100110101000011001001010011011001101000011100001010000011001111111010011010110010000000100010000111100...

input:

walk
0101111100000011000001100011100110110101001100001101111010100000000000011000000011100111011110010101111110000101101000000111110110100000000100111100101110000110000011101000000001011101010010010000001001101010000110010010100110110011010000111000010100000110011111110100110101100100000001000100001...

output:

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

result:

ok 728 steps

Test #71:

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

input:

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

output:

100000001110111001101100011111011001000010110001000100011001110111010011000000010011100110011010000011110011000101001100111011000100010110000100110100110000001100010110101101011000010100000100000001011110010001100010110100111110010110100111100011111001010101001001101000110111101010000111000100010010...

input:

walk
1000000011101110011011000111110110010000101100010001000110011101110100110000000100111001100110100000111100110001010011001110110001000101100001001101001100000011000101101011010110000101000001000000010111100100011000101101001111100101101001111000111110010101010010011010001101111010100001110001000...

output:

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

result:

ok 792 steps

Test #72:

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

input:

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

output:

101001101011000101001101000000101011110001110010010111111010000100101100011110110000000100100010000100111101110001110000010000000010001011101110010010011110000000101001101001110110010000000110101011101000000110000010011110100011100010110001010000110100000101001011110011000001101011001110100011010010...

input:

walk
1010011010110001010011010000001010111100011100100101111110100001001011000111101100000001001000100001001111011100011100000100000000100010111011100100100111100000001010011010011101100100000001101010111010000001100000100111101000111000101100010100001101000001010010111100110000011010110011101000110...

output:

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

result:

ok 1010 steps

Test #73:

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

input:

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

output:

101110001111000110011000001001010101000001110001000000110001101111101110110011000001110000110000110101010110011101010001110101100001000000100101110100101101001100011111000001110111001101000000011000101000000100011101001010110110100011011110110000010000010011011011110000101110000000100100111101101010...

input:

walk
1011100011110001100110000010010101010000011100010000001100011011111011101100110000011100001100001101010101100111010100011101011000010000001001011101001011010011000111110000011101110011010000000110001010000001000111010010101101101000110111101100000100000100110110111100001011100000001001001111011...

output:

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

result:

ok 902 steps

Test #74:

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

input:

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

output:

001011010100010111111010111010111101001000000000111000000101110110111010100110110101101010100010011000000110000110001100000101010101001101001000011011010010000001011100000100000000010011111000101110110010100001011000001001110011101001011101111110101000010011100101100001110000011010110000110101111000...

input:

walk
0010110101000101111110101110101111010010000000001110000001011101101110101001101101011010101000100110000001100001100011000001010101010011010010000110110100100000010111000001000000000100111110001011101100101000010110000010011100111010010111011111101010000100111001011000011100000110101100001101011...

output:

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

result:

ok 774 steps

Test #75:

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

input:

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

output:

011101011001001001000011101011001001010010110111011111101101100001110100100100010011111100001010010000100101000101010110110010110111111100110101010011100110001100100010101011010001010010000110110011010001111011000011001010110110100101010001001100000110010011000001000100001001101110100100110010011011...

input:

walk
0111010110010010010000111010110010010100101101110111111011011000011101001001000100111111000010100100001001010001010101101100101101111111001101010100111001100011001000101010110100010100100001101100110100011110110000110010101101101001010100010011000001100100110000010001000010011011101001001100100...

output:

E
E
E
E
E
N
W
W
N
W
W
W
N
N
E
E
N
N
E
N
E
E
N
E
E
N
N
E
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
W
N
N
N
E
S
E
N
E
E
N
E
N
N
N
E
N
E
E
N
W
N
N
E
S
E
N
E
E
E
S
S
W
S
E
E
S
E
E
N
E
E
E
E
E
N
N
E
N
N
N
N
E
E
N
E
S
E
E
N
N
E
N
N
E
N
E
E
E
E
E
E
N
N
N
E
S
E
S
W
S
S
E
E
S
E
E
E
N
E
E
E
S
S
E
...

result:

ok 964 steps