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