See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none

print("for-41 for-15 move-down move-right if-ok move-left break else endif end for-499 move-right if-ok else move-left endif for-15 take open-up move-up end move-right if-ok else move-left endif for-15 take open-down move-down end end move-left end move-down move-down for-500 move-right open-right end ")