See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("for-41 for-20 move-down move-right if-ok break else endif end for-250 for-20 take open-up move-up end move-right for-20 take open-down move-down end move-right end for-250 move-left for-20 take open-up move-up end move-left for-20 take open-down move-down end end end move-down move-down for-500 move-right open-right end 
")