10409

Die Game
Type:
Simulation
Diff:4.0

Input

4
north
north
north
north
4
south
south
south
south
4
east
east
east
east
4
west
west
west
west
5
north
north
north
north
north
5
south
south
south
south
south
5
east
east
east
east
east
5
west
west
west
west
west
0

Output of The Input

1
1
1
1
5
2
3
4

If you have any advice, complements 

or proposal, please  Send mail to Author

Submit

 

1