See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''move-left
for-5
move-up
end
for-33
move-left
end
for-12
move-up
end
for-26
move-right
end
for-12
move-up
end
for-22
move-left
end
for-14
move-up
end
for-20
move-left
end
for-29
move-down
end
for-15
move-left
end
for-37
move-down
end
for-9
move-right
end
for-6
move-down
end
for-30
move-right
end
for-10
move-down
end
for-37
move-left
end
for-6
move-up
end
for-2
move-up
move-left
end
for-10
move-left
end
for-47
move-up
end
for-7
move-right
end
for-20
move-up
end
for-51
move-left
end
for-10
move-up
end
for-36
move-right
end
move-up
move-left
for-21
move-up
end
for-2
for-7
move-right
end
for-7
move-up
end
end
for-43
move-right
end
for-7
move-up
end
for-34
move-right
end
for-28
move-down
end
for-8
move-left
end
for-18
move-down
end
for-14
move-left
end
for-7
move-down
end
for-12
move-right
end
for-2
move-right
move-down
end
for-11
move-down
end
for-2
for-6
move-down
end
move-right
end
for-8
move-right
end
for-23
move-up
end
for-9
move-right
end
for-43
move-down
end
for-7
move-left
end
for-2
move-down
end
for-2
for-7
move-down
end
move-left
end
for-8
move-left
end
for-32
move-down
end
for-14
move-right
end
for-20
move-down
end
for-8
move-right
end
for-45
move-down
end
for-16
move-right
end
for-8
move-up
end
for-6
move-right
end
for-21
move-down
end
for-12
move-left
end
for-41
move-down
end
for-6
move-right
end
for-66
move-down
end
for-10
move-left
end
for-74
move-down
end
for-2
move-down
move-left
end
for-13
move-left
end
for-3
move-up
end
move-right
for-16
move-up
end
for-9
move-left
end
for-14
move-down
end
for-8
move-left
end
for-8
move-up
end
for-9
move-left
end
for-20
move-down
end
for-15
move-left
end
for-2
for-3
move-up
end
move-right
for-14
move-up
end
end
for-17
move-up
end
for-2
move-up
for-9
move-left
end
end
for-12
move-left
end
for-9
move-down
end
move-left
move-down
for-14
move-right
end
for-13
move-down
end
for-5
move-left
end
for-14
move-down
end
for-9
move-right
end
for-8
move-down
end
for-19
move-left
end
for-23
move-up
end
for-6
move-left
end
for-9
move-up
end
for-9
move-left
end
for-85
move-down
end
for-9
move-left
end
for-43
move-up
end
move-left
for-39
move-up
end
for-8
move-left
end
for-19
move-up
end
for-6
move-left
end
for-23
move-up
end
for-15
move-left
end
for-2
move-left
move-up
move-up
end
for-20
move-up
end
for-7
move-right
end
for-15
move-up
end
for-5
move-left
end
for-27
move-up
end
for-7
move-right
end
for-24
move-up
end
for-7
move-right
end
for-19
move-up
end
for-5
move-right
end
for-83
move-up
end
for-6
move-right
end
for-29
move-up
end
move-left
for-29
move-up
end
for-12
move-left
end
for-8
move-up
end
for-16
move-right
end
for-12
move-up
end
for-33
move-left
end
for-2
for-9
move-left
end
move-up
end
for-24
move-up
end
for-12
move-left
end
for-8
move-up
end
for-8
move-left
end
for-6
move-up
end
for-12
move-left
end
for-9
move-up
end
for-18
move-left
end
for-30
move-up
end
for-9
move-right
end
move-up
for-10
move-right
end
for-9
move-up
end
for-44
move-right
end
for-10
move-up
end
for-46
move-left
end
for-6
move-down
end
for-18
move-left
end
for-6
move-up
end
for-9
move-left
end
for-28
move-down
end
for-3
move-left
end
for-22
move-down
end
for-8
move-left
end
for-16
move-up
end
move-right
for-29
move-up
end
for-11
move-left
end
for-18
move-down
end
for-2
move-down
move-left
end
for-16
move-left
end
for-14
move-up
end
for-6
move-left
end
for-9
move-up
end
for-12
move-left
end
for-8
move-up
end
for-50
move-left
end
for-8
move-down
end
for-17
move-left
end
for-7
move-down
end
for-37
move-left
end
for-5
move-up
end
for-34
move-left
end
for-8
move-up
end
for-30
move-left
end
for-8
move-down
end
for-9
move-right
end
for-5
move-down
end
for-18
move-right
end
for-8
move-down
end
for-25
move-right
end
for-32
move-down
end
for-14
move-right
end
for-15
move-down
end
for-2
for-7
move-down
end
move-left
end
for-4
move-left
end
for-18
move-down
end
for-7
move-right
end
for-27
move-down
end
for-9
move-right
end
for-20
move-down
end
for-9
move-right
end
for-5
move-down
end
for-5
move-right
end
for-11
move-down
end
for-7
move-left
end
for-5
move-down
end
for-7
move-left
end
for-2
move-left
move-down
end
for-7
move-down
end
for-9
move-left
end
for-8
move-down
end
for-9
move-left
end
for-9
move-down
end
for-10
move-left
end
for-9
move-down
end
for-15
move-left
end
for-9
move-down
end
for-10
move-left
end
for-8
move-down
end
for-26
move-left
end
for-9
move-down
end
for-9
move-left
end
for-16
move-down
end
for-12
move-left
end
for-15
move-down
end
for-9
move-left
end
for-39
move-down
end
for-11
move-left
end
for-41
move-down
end
for-9
move-left
end
for-7
move-down
end
for-9
move-left
end
for-13
move-down
end
for-25
move-left
end
for-27
move-up
end
move-left
for-9
move-up
end
for-9
move-right
end
for-7
move-up
end
for-12
move-right
end
for-24
move-up
end
for-9
move-right
end
for-26
move-up
end
for-12
move-left
end
for-16
move-down
end
for-9
move-left
end
for-29
move-down
end
for-19
move-left
end
for-4
move-down
end
for-23
move-left
end
for-20
move-down
end
for-7
move-left
end
for-22
move-down
end
for-5
move-right
end
for-2
move-right
for-9
move-down
end
end
for-9
move-right
end
for-15
move-up
end
for-4
move-left
end
for-24
move-up
end
for-13
move-right
end
for-9
move-down
end
move-left
for-9
move-down
end
for-6
move-right
end
for-18
move-down
end
for-6
move-right
end
for-9
move-down
end
for-9
move-left
end
for-9
move-down
end
for-32
move-left
end
for-8
move-up
end
for-48
move-left
end
for-8
move-down
end
for-9
move-left
end
for-2
for-9
move-down
end
for-5
move-left
end
end
for-38
move-down
end
for-6
move-right
end
for-5
move-down
end
for-2
move-down
move-right
end
for-10
move-right
end
for-26
move-down
end
for-12
move-right
end
for-16
move-down
end
for-2
move-left
end
for-2
move-down
end
for-44
move-left
end
move-up
for-9
move-left
end
for-16
move-down
end
for-5
move-left
end
for-6
move-down
end
for-29
move-left
end
for-2
move-up
end
for-22
move-left
end
for-9
move-up
end
for-9
move-right
end
for-9
move-up
end
for-8
move-left
end
for-24
move-up
end
for-16
move-left
end
for-51
move-down
end
for-8
move-left
end
for-39
move-up
end
move-left
for-90
move-up
end
for-7
move-right
end
for-17
move-up
end
for-8
move-right
end
for-26
move-up
end
for-7
move-right
end
for-50
move-up
end
move-left
for-25
move-up
end
for-9
move-right
end
for-31
move-up
end
for-4
move-right
end
for-32
move-up
end
for-3
move-left
end
for-33
move-up
end
for-8
move-right
end
move-up
for-9
move-right
end
for-14
move-up
end
for-13
move-right
end
for-40
move-up
end
for-9
move-right
end
for-36
move-down
end
for-12
move-right
end
for-43
move-up
end
for-7
move-right
end
for-11
move-up
end
for-36
move-left
end
for-8
move-up
end
for-6
move-right
end
for-15
move-up
end
for-11
move-left
end
for-9
move-up
end
for-9
move-right
end
for-15
move-up
end
for-45
move-left
end
for-43
move-up
end
for-14
move-right
end
for-10
move-up
end
for-14
move-right
end
for-8
move-up
end
for-91
move-right
end
for-7
move-up
end
for-35
move-right
end
move-up
for-34
move-right
end
for-4
move-down
end
for-37
move-right
end
move-up
for-8
move-right
end
for-2
for-4
move-right
end
move-down
end
for-4
move-down
end
for-9
move-right
end
for-5
move-down
end
for-28
move-right
end
for-6
move-down
end
for-15
move-right
end
for-7
move-down
end
for-17
move-right
end
for-20
move-down
end
for-9
move-left
end
for-8
move-down
end
for-5
move-left
end
for-28
move-down
end
move-right
for-13
move-down
end
for-16
move-left
end
for-7
move-down
end
for-22
move-left
end
for-17
move-down
end
for-8
move-left
end
for-30
move-up
end
for-27
move-right
end
for-2
for-4
move-right
end
move-up
end
for-13
move-up
end
for-9
move-left
end
for-9
move-up
end
move-right
for-9
move-up
end
for-21
move-left
end
for-8
move-up
end
for-9
move-left
end
for-9
move-down
end
for-9
move-left
end
for-5
move-up
end
for-9
move-left
end
for-15
move-down
end
for-34
move-right
end
for-13
move-down
end
for-44
move-left
end
for-22
move-up
end
for-9
move-left
end
for-31
move-down
end
for-17
move-right
end
for-9
move-down
end
for-8
move-right
end
for-28
move-down
end
for-9
move-left
end
for-23
move-up
end
for-8
move-left
end
for-7
move-up
end
for-9
move-left
end
for-12
move-down
end
for-9
move-right
end
for-39
move-down
end
for-12
move-left
end
for-2
move-left
move-up
move-up
end
for-28
move-up
end
for-9
move-left
end
for-3
move-down
end
for-9
move-left
end
for-5
move-down
end
for-8
move-left
end
for-18
move-down
end
for-20
move-left
end
for-9
move-down
end
for-15
move-left
end
for-9
move-down
end
for-13
move-left
end
for-10
move-down
end
for-20
move-left
end
move-up
for-29
move-left
end
for-43
move-up
end
for-9
move-right
end
for-5
move-up
end
for-12
move-right
end
for-17
move-up
end
for-6
move-left
end
for-7
move-down
end
for-9
move-left
end
for-25
move-up
end
for-22
move-right
end
for-14
move-up
end
for-9
move-left
end
for-4
move-down
end
for-24
move-left
end
for-2
move-left
move-down
end
for-24
move-down
end
for-14
move-left
end
for-39
move-up
end
for-32
move-right
end
for-9
move-up
end
for-19
move-right
end
for-22
move-up
end
for-39
move-left
end
move-down
''')
