See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
#!/usr/bin/python3

print("for-350 move-down move-right move-up move-right end move-down move-right move-down move-left for-350 move-down move-left move-up move-left end for-87 for-3 move-down end move-right for-350 move-up move-right move-down move-right end move-down move-left move-down move-left for-349 move-up move-left move-down move-left end move-up move-left for-3 move-down end move-right move-up move-right for-349 move-down move-right move-up move-right end move-down move-right move-down move-left for-350 move-down move-left move-up move-left end end for-3 move-down end move-right for-350 move-up move-right move-down move-right end move-up")
