See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
s = '''r
d
l
d
d
r
r
d
l
l
d
r
d
r
u
r
u
u
r
r
u
l
l
u
l
u
for-3
    move-right
    move-right
    move-down
end
l
l
d
r
r
d
l
l
d
d
l
u
l
l
d
r
d
r
d
l
d
l
u
l
u
u
l
l
d
r
d
d
r
d
r
d
l
l
for-4
    move-down
end
l
for-5
    move-down
end
r
u
r
d
d
r
d
r
r
u
l
u
u
r
u
u
l
for-3
    move-up
end
l
u
u
for-4
    move-right
end
d
r
r
d
l
l
d
l
for-4
    move-down
end
for-3
    move-right
end
d
l
d
r
r
d
r
d
d
l
d
r
for-3
    move-down
end
r
for-5
    move-up
end
r
d
r
u
u
l
l
for-5
    move-up
end
l
l
for-3
    move-up
end
r
u
r
u
r
d
for-5
    move-right
end
u
u
l
for-3
    move-up
end
r
r
u
for-3
    move-right
end
d
l
d
d
r
d
for-4
    move-right
end
d
r
u
r
for-5
    move-up
end
r
r
d
r
u
r
d
d
l
d
d
r
u
r
u
r
d
for-3
    move-down
    move-right
end
r
r
d
r
r
u
l
u
r
r
for-3
    move-up
end
l
l
u
u
for-3
    move-right
end
d
r
u
for-4
    move-right
end
u
u
r
r
u
u
for-4
    move-right
end
for-3
    move-up
end
for-7
    move-right
end
d
l
d
d
for-3
    move-right
end
d
l
l
d
r
r
d
d
r
d
l
l
u
l
d
l
d
l
u
u
for-3
    move-left
end
d
d
l
u
l
d
d
l
l
d
for-3
    move-right
end
d
r
d
for-3
    move-right
end
for-3
    move-up
end
r
r
u
r
d
d
l
d
for-3
    move-right
end
d
r
u
r
u
u
l
d
l
u
u
r
r
u
l
u
r
u
l
l
u
for-3
    move-right
end
for-3
    move-down
end
r
r
for-3
    move-up
end
l
u
l
l
u
l
d
l
u
u
l
u
r
u
for-4
    move-right
end
d
r
d
l
d
r
d
r
r
d
l
for-4
    move-down
end
for-3
    move-right
end
d
r
d
l
l
u
l
d
l
u
for-3
    move-left
end
d
d
r
d
d
r
d
l
d
d
l
l
u
r
u
u
for-3
    move-left
end
d
l
l
d
d
l
d
r
r
u
r
r
d
d
r
d
l
d
l
d
d
l
d
r
d
for-3
    move-right
end
u
l
l
u
u
r
d
r
for-3
    move-up
end
r
d
r
d
l
d
d
for-3
    move-right
end
u
r
u
u
r
for-3
    move-down
end
l
d
r
r
u
r
u
l
u
for-3
    move-right
end
u
u
l
d
l
l
u
r
u
l
for-3
    move-up
end
l
d
l
for-3
    move-up
end
r
d
for-3
    move-right
end
d
d
r
r
for-3
    move-down
end
for-3
    move-right
end
d
l
d
d
l
u
l
d
d
l
l
d
d
r
d
l
d
r
r
d
r
d
r
for-3
    move-up
end
l
u
r
u
u
r
u
r
for-4
    move-down
end
r
u
u
r
r
u
r
u
l
u
u
for-3
    move-left
end
u
r
for-5
    move-up
end
r
u
u
for-3
    move-right
end
u
u
l
d
for-3
    move-left
end
u
l
l
d
l
l
d
l
u
for-3
    move-left
end
for-4
    move-up
end
l
l
u
l
u
r
u
u
for-3
    move-right
end
u
r
u
for-5
    move-right
end
u
l
u
for-4
    move-right
end
d
r
for-6
    move-down
end
r
r
d
for-3
    move-right
end
d
r
r
u
r
u
for-3
    move-right
end
for-3
    move-up
end
r
for-4
    move-down
end
r
d
r
u
r
r
u
r
r
d
l
d
l
l
d
l
for-4
    move-down
end
l
d
l
u
u
r
for-3
    move-up
end
l
u
l
u
l
l
d
l
d
d
r
u
r
d
r
for-4
    move-down
end
l
d
r
d
d
l
d
d
l
d
r
r
u
u
r
d
r
u
r
u
r
r
d
r
for-4
    move-up
end
l
d
d
for-3
    move-left
end
u
r
u
r
for-4
    move-up
end
r
for-4
    move-right
    move-up
end
r
d
d
for-4
    move-right
end
u
for-3
    move-right
end
u
u
l
d
for-4
    move-left
end
d
l
u
u
r
r
u
for-3
    move-left
end
d
l
for-3
    move-left
    move-up
end
for-3
    move-up
end
for-4
    move-right
end
d
l
d
r
d
l
l
d
for-3
    move-right
end
u
r
d
r
r
d
r
r
u
u
for-3
    move-left
end
for-3
    move-up
end
r
r
d
r
r
d
d
r
d
l
d
r
for-3
    move-down
end
r
u
r
u
l
u
r
u
u
l
u
l
u
u
r
d
r
u
r
d
r
u
r
d
d
l
l
for-3
    move-down
end
r
u
r
d
d
r
u
r
r
d
l
d
r
d
for-3
    move-left
end
d
r
r
d
for-4
    move-left
end
u
for-6
    move-left
end
d
l
l
d
l
d
for-4
    move-right
end
d
r
d
l
l
u
for-6
    move-left
end
u
u
r
r
u
for-3
    move-left
end
for-4
    move-down
end
l
d
r
d
l
d
r
r
u
for-3
    move-right
end
d
r
d
d
l
u
l
u
l
d
l
l
d
r
d
for-5
    move-left
end
d
d
for-3
    move-right
end
d
l
for-3
    move-down
end
r
d
l
l
for-3
    move-up
end
for-7
    move-left
end
u
l
l
d
l
for-3
    move-up
end
l
u
u
for-4
    move-left
end
d
r
d
d
l
d
d
r
for-3
    move-down
end
l
u
for-3
    move-left
end
d
r
d
l
d
l
u
l
l
for-3
    move-down
end
l
d
l
u
l
d
l
for-3
    move-up
end
l
l
for-3
    move-down
end
l
l
u
u
l
for-3
    move-down
end
l
l
u
u
l
d
l
d
r
d
d
for-4
    move-right
end
d
l
d
d
r
u
r
r
u
u
for-4
    move-right
end
d
r
d
r
for-3
    move-up
end
l
u
r
u
for-4
    move-right
end
u
l
u
r
u
for-4
    move-right
end
d
l
l
d
l
d
for-6
    move-right
end
u
r
d
r
d
for-3
    move-right
end
d
d
l
d
r
r
d
l
l
d
for-3
    move-right
end
d
r
u
u
l
u
u
r
for-3
    move-up
end
l
u
r
r
u
u
r
d
d
r
d
d
l
u
l
d
d
for-3
    move-right
end
d
d
r
for-5
    move-down
end
l
u
l
for-4
    move-down
end
r
u
u
r
r
u
u
r
d
d
r
u
r
r
u
u
l
u
r
u
r
d
d
r
u
r
r
u
l
for-4
    move-up
end
l
d
l
l
d
r
r
d
for-3
    move-left
end
d
l
u
l
l
u
l
u
r
r
u
u
l
d
l
l
u
r
u
l
u
l
u
for-3
    move-right
end
u
r
r
d
l
d
l
d
r
r
for-3
    move-down
end
r
u
r
r
for-4
    move-up
end
l
u
for-3
    move-right
end
for-4
    move-down
    move-right
end
for-3
    move-right
end
d
for-3
    move-right
    move-up
end
r
d
d
l
d
d
r
u
r
d
r
u
u
l
u
r
u
u
l
u
r
u
r
u
l
u
u
r
d
r
r
d
l
d
d
r
d
l
l
for-3
    move-down
end
r
r
d
l
l
d
d
for-3
    move-left
end
d
d
l
u
u
l
u
l
l
d
r
d
for-3
    move-left
end
d
for-4
    move-right
end
d
d
l
d
r
r
u
for-4
    move-right
end
d
d
l
u
l
l
d
l
d
d
l
u
u
for-3
    move-left
end
d
l
u
u
r
u
r
u
for-5
    move-left
end
for-3
    move-down
end
l
d
r
r
for-3
    move-up
end
r
for-4
    move-down
end
r
d
l
l
u
l
l
d
r
d
r
d
l
l
d
for-3
    move-right
end
u
u
r
for-3
    move-right
    move-down
    move-left
    move-down
end
d
d
l
d
l
u
l
d
for-3
    move-left
end
u
l
u
r
r
d
r
u
r
for-3
    move-up
end
r
u
for-4
    move-left
end
u
r
for-7
    move-up
end
l
l
d
r
for-4
    move-down
end
l
l
u
for-4
    move-left
end
d
l
l
d
l
d
d
l
l
u
l
d
d
l
u
u
l
for-3
    move-down
end
r
for-3
    move-right
    move-down
end
for-4
    move-left
end
d
r
r
d
r
d
d
l
d
d
l
for-4
    move-up
end
for-5
    move-left
end
d
l
u
l
d
d
l
d
r
r
u
for-4
    move-right
end
d
l
l
for-3
    move-down
end
l
l
u
r
u
l
l
for-8
    move-down
end
l
d
r
r
d
d
r
u
u
r
d
d
for-3
    move-right
end
u
l
u
u
l
u
r
u
r
r
u
r
d
r
d
r
for-3
    move-up
end
l
l
u
l
d
l
d
l
u
for-3
    move-left
end
u
r
r
u
r
u
for-4
    move-right
end
d
d
r
u
r
r
u
u
for-3
    move-left
end
u
r
u
r
r
d
r
d
r
r
d
l
l
d
r
r
d
l
for-5
    move-down
end
l
l
d
r
r
for-3
    move-down
end
l
d
r
r
for-3
    move-up
end
r
u
r
r
d
l
d
l
d
r
d
l
d
d
r
for-3
    move-down
end
r
r
for-3
    move-down
end
r
d
r
u
r
for-3
    move-up
end
r
u
r
d
r
u
r
r
u
r
r
for-3
    move-down
end
l
u
l
l
d
for-3
    move-left
end
for-3
    move-down
end
r
r
u
r
u
for-4
    move-right
end
u
u
for-4
    move-right
end
u
for-4
    move-left
end
u
r
u
r
d
for-3
    move-right
end
d
r
for-4
    move-down
end
r
r
d
d
r
d
l
l
u
u
for-3
    move-left
end
d
d
l
l
for-3
    move-up
end
r
u
l
l
for-5
    move-down
end
for-3
    move-right
end
d
d
r
r
d
r
r
d
l
l
d
l
d
r
d
for-3
    move-right
end
d
r
u
u
l
l
u
r
u
r
d
for-3
    move-right
end
d
l
l
d
d
r
d
r
d
l
l
u
for-4
    move-left
end
d
l
l
for-4
    move-down
end
r
u
r
d
d
l
l
d
r
for-3
    move-down
end
l
for-4
    move-down
end
r
r
u
l
u
u
r
u
for-4
    move-right
end
for-3
    move-down
end
for-3
    move-left
end
d
r
d
l
l
d
d
l
u
u
for-5
    move-left
end
u
l
for-3
    move-up
end
r
u
r
for-4
    move-down
end
r
r
for-4
    move-up
end
l
u
r
r
u
for-3
    move-left
end
d
l
u
u
r
u
for-3
    move-left
end
d
r
d
l
l
d
l
d
r
r
for-3
    move-down
end
l
l
d
for-3
    move-left
end
d
d
l
d
l
l
d
l
l
u
l
for-3
    move-up
end
l
l
u
r
u
l
l
for-3
    move-up
end
r
d
r
for-4
    move-up
end
l
l
u
for-4
    move-left
end
u
u
l
u
l
d
l
d
d
r
d
l
l
d
for-7
    move-right
end
d
d
l
d
l
l
d
d
r
u
r
r
d
d
for-3
    move-left
end
d
for-3
    move-right
end
d
l
l
d
r
d
for-4
    move-left
end
u
r
r
u
l
u
for-3
    move-left
end
u
u
r
d
r
u
r
u
l
u
r
u
for-3
    move-left
end
d
d
l
d
l
d
r
for-3
    move-down
end
r
u
r
for-4
    move-down
end
r
u
r
r
d
l
d
for-3
    move-left
end
u
u
l
l
for-4
    move-up
end
l
for-3
    move-down
end
for-3
    move-left
end
d
r
d
r
u
r
d
r
d
d
r
d
for-4
    move-right
end
d
for-3
    move-left
end
d
r
d
r
r
d
r
d
for-3
    move-right
end
u
for-3
    move-right
end
d
r
u
u
r
r
d
l
d
d
l
d
l
u
l
d
l
d
l
l
for-4
    move-down
end
l
d
d
l
for-3
    move-down
end
l
d
l
l
d
r
r
d
r
u
for-3
    move-right
end
d
d
r
u
r
r
d
d
r
d
d
l
d
d
l
for-4
    move-up
end
l
l
d
d
r
for-3
    move-down
end
l
d
r
d
l
d
d
for-3
    move-left
end
u
u
l
for-4
    move-down
end
l
for-3
    move-down
    move-right
end
u
u
r
u
r
d
for-3
    move-right
end
d
for-3
    move-right
end
d
l
d
l
d
d
l
for-3
    move-up
end
l
l
for-3
    move-down
end
l
d
l
d
l
l
u
r
u
l
u
r
r
u
for-3
    move-left
end
u
l
for-4
    move-down
end
l
l
d
d
r
u
r
r
d
d
for-3
    move-left
end
d
l
d
l
for-3
    move-down
end
for-6
    move-right
end
d
d
r
u
u
r
r
for-7
    move-up
end
r
u
r
r
d
r
u
r
d
for-3
    move-right
end
d
r
d
r
d
l
l
d
l
for-3
    move-up
end
for-6
    move-left
end
d
r
r
d
r
u
r
r
d
l
d
l
d
d
r
u
r
r
d
r
u
r
u
for-3
    move-right
end
u
r
for-3
    move-up
end
r
r
u
for-4
    move-right
end
for-3
    move-up
end
r
u
r
for-3
    move-down
end
r
r
u
l
for-7
    move-up
end
r
d
d
r
d
l
d
r
d
l
d
r
r
d
for-3
    move-right
end
d
r
r
d
d
r
u
for-3
    move-right
end
for-3
    move-up
end
r
r
u
r
r
u
r
d
d
r
for-3
    move-down
end
r
u
r
r
d
r
d
for-3
    move-left
end
d
for-3
    move-left
end
d
l
l
for-3
    move-up
end
r
d
r
u
r
u
u
l
u
l
d
l
l
for-3
    move-down
end
for-3
    move-left
end
d
for-3
    move-right
end
d
for-3
    move-left
end
d
d
r
u
for-3
    move-right
end
d
r
u
r
r
u
r
r
for-3
    move-down
end
l
d
d
r
for-3
    move-down
end
l
l
u
r
u
l
u
l
l
d
l
d
l
u
u
r
u
l
l
d
l
u
u
for-3
    move-left
end
u
r
u
l
l
d
d
l
u
u
l
u
u
r
r
u
u
for-9
    move-left
end
d
l
d
d
l
d
l
u
u
for-3
    move-left
end
d
d
r
d
r
d
for-4
    move-left
end
d
r
d
r
u
r
for-5
    move-down
end
r
r
d
d
l
d
d
r
d
l
l
d
r
d
l
l
u
l
d
l
l
u
l
u
r
u
l
for-3
    move-up
end
r
d
for-3
    move-right
end
d
d
r
for-3
    move-up
end
l
u
for-5
    move-left
end
u
l
l
u
r
u
l
u
l
d
for-3
    move-left
end
d
for-3
    move-down
    move-left
end
l
d
l
u
u
l
l
d
d
l
for-5
    move-up
end
for-4
    move-left
end
d
d
l
d
l
d
d
r
u
r
u
for-3
    move-right
end
d
d
l
l
d
d
l
u
for-3
    move-left
end
u
u
l
d
d
l
u
l
d
l
d
d
l
l
u
u
l
d
l
l
d
l
for-3
    move-up
end
l
d
l
l
d
d
r
d
for-3
    move-left
end
for-3
    move-up
end
l
u
r
r
u
r
d
r
u
u
l
u
l
d
for-3
    move-left
end
u
l
for-5
    move-up
end
l
l
u
u
for-4
    move-left
end
for-3
    move-up
end
l
u
r
u
r
for-4
    move-down
end
r
for-4
    move-up
end
r
for-4
    move-down
end
r
r
d
d
r
u
u
for-3
    move-right
    move-down
    move-right
end
for-4
    move-down
end
r
for-3
    move-down
end
for-3
    move-right
end
d
r
r
u
l
u
r
u
l
l
u
u
r
r
d
r
r
u
l
u
for-4
    move-right
end
u
l
u
for-3
    move-right
end
d
l
d
d
for-3
    move-left
end
d
d
l
d
d
r
r
for-3
    move-up
end
for-4
    move-right
end
u
l
u
r
for-3
    move-up
end
for-3
    move-left
end
u
r
u
u
l
d
l
l
d
r
d
l
l
u
l
l
for-4
    move-down
end
l
l
for-3
    move-up
end
l
l
for-4
    move-up
end
for-3
    move-right
end
d
l
l
d
r
d
r
u
for-3
    move-right
    move-right
    move-up
    move-right
end
r
r
u
u
r
d
r
for-4
    move-up
end
l
u
l
l
for-3
    move-down
end
l
d
l
u
l
u
l
d
for-4
    move-left
end
d
l
u
u
r
u
l
u
u
l
d
d
l
u
u
l
u
r
u
l
u
r
r
d
r
r
u
r
d
d
l
d
d
r
u
r
u
for-3
    move-right
end
u
r
for-4
    move-up
end
for-4
    move-right
end
for-8
    move-up
end
l
u
l
d
d
r
d
d
l
u
l
d
d
r
r
d
l
d
l
u
l
l
u
u
for-4
    move-left
end
for-3
    move-down
end
l
u
u
l
for-3
    move-down
end
for-4
    move-left
    move-up
end
u
l
u
u
l
for-3
    move-down
end
l
l
d
l
d
r
d
l
l
for-4
    move-up
end
l
d
l
for-3
    move-up
end
l
u
l
l
for-4
    move-up
end
r
u
l
u
u
r
u
r
u
for-3
    move-left
end
u
l
d
l
d
r
r
d
d
l
u
for-4
    move-left
end
u
r
r
u
u
r
u
l
u
l
l
d
l
for-3
    move-down
end
for-3
    move-left
end
u
l
u
u
r
u
l
l
for-3
    move-up
end
l
u
l
for-4
    move-up
end
for-4
    move-right
end
u
u
l
for-4
    move-up
end
for-4
    move-left
end
d
l
d
l
u
l
d
l
u
u
r
r
u
for-3
    move-left
end
d
l
u
u
l
u
for-3
    move-left
end
u
for-3
    move-right
end
u
l
u
for-3
    move-left
end
for-7
    move-up
end
for-3
    move-left
end
for-4
    move-up
end
l
for-4
    move-up
end
r
u
r
for-4
    move-up
end
l
for-4
    move-up
end
for-3
    move-right
end
d
for-5
    move-right
end
for-3
    move-up
end
l
u
r
r
d
r
r
d
r
r
u
for-4
    move-right
end
u
u
r
d
d
r
r
u
r
d
r
for-7
    move-up
end
l
for-3
    move-left
    move-up
end
u
u
for-4
    move-right
end
u
r
u
u
for-6
    move-right
end
d
r
u
for-10
    move-right
end
for-3
    move-up
end
r
u
for-3
    move-up
    move-right
end
d
d
r
r
u
for-4
    move-right
end
u
r
r
u
u
r
u
u
l
l
for-3
    move-down
end
l
u
u
for-5
    move-left
end
d
l
u
u
l
d
l
u
l
u
for-3
    move-up
    move-right
end
d
r
u
r
d
for-3
    move-right
end
u
l
l
u
r
u
u
r
r
d
l
d
r
d
d
r
u
r
d
d
for-3
    move-left
end
d
for-4
    move-right
end
for-3
    move-up
end
r
u
l
u
r
r
d
d
r
u
r
r
for-7
    move-up
end
l
for-4
    move-down
end
for-10
    move-left
end
d
d
l
l
u
l
l
u
l
for-3
    move-down
end
l
u
u
l
d
d
for-3
    move-left
end
for-5
    move-down
end
r
d
l
for-3
    move-down
end
l
l
d
d
l
u
u
l
l
d
l
u
for-3
    move-left
    move-down
end
d
l
u
u
l
u
r
u
l
for-3
    move-up
end
for-3
    move-left
end
u
u
r
u
r
d
d
r
u
r
r
u
l
l
u
r
u
r
d
r
for-4
    move-down
end
r
d
r
u
r
u
l
l
for-3
    move-up
end
r
d
r
r
u
l
u
r
u
u
l
l
u
r
r
u
r
for-3
    move-down
end
r
r
u
u
r
u
r
d
d
r
for-4
    move-up
end
for-8
    move-left
end
d
d
l
u
l
d
d
r
for-3
    move-down
end
l
u
u
l
for-3
    move-left
    move-down
end
l
l
d
l
l
d
d
l
l
u
u
r
u
r
r
u
r
u
l
l
u
r
u
l
l
u
r
r
u
r
r
d
r
r
u
for-3
    move-up
    move-left
end
l
d
r
d
l
l
d
for-3
    move-left
    move-up
end
for-3
    move-right
end
u
for-3
    move-right
end
u
u
l
d
l
l
u
l
l
d
r
d
for-3
    move-left
end
for-3
    move-up
end
l
u
for-12
    move-left
end
d
l
u
for-5
    move-left
end
for-4
    move-down
end
l
l
d
d
l
d
for-3
    move-left
end
u
for-6
    move-left
end
d
for-5
    move-left
end
for-4
    move-down
end
r
r
for-4
    move-down
end
r
d
for-7
    move-right
end
d
r
for-6
    move-down
end
for-4
    move-left
end
d
l
l
d
for-4
    move-right
end
d
d
r
r
for-4
    move-down
end
l
d
l
for-4
    move-down
end
l
l
d
l
l
d
l
u
l
for-3
    move-down
end
l
d
l
l
d
r
d
r
u
r
r
d
d
for-3
    move-left
end
d
l
l
d
d
l
u
l
u
r
u
u
l
d
l
l
d
r
d
l
d
l
u
l
u
l
l
u
r
for-3
    move-up
    move-left
end
u
u
l
u
l
d
d
l
u
u
l
u
u
r
r
d
r
r
for-3
    move-up
end
l
for-3
    move-up
end
l
u
r
r
d
d
r
for-3
    move-up
end
r
r
d
l
d
r
d
r
d
for-3
    move-left
end
d
d
r
for-6
    move-down
end
for-3
    move-right
end
u
l
u
r
r
for-3
    move-down
end
l
l
d
d
r
u
r
r
u
u
for-3
    move-right
end
u
u
l
d
l
for-5
    move-up
end
r
u
r
d
d
l
d
d
r
r
d
d
r
u
r
for-4
    move-up
end
r
u
r
u
r
r
u
u
l
d
for-4
    move-left
end
d
for-3
    move-left
end
u
r
for-3
    move-up
end
l
d
for-3
    move-down
    move-left
end
u
l
u
l
u
r
u
l
for-3
    move-up
end
r
d
d
r
d
r
u
u
for-4
    move-right
end
u
r
r
u
r
r
u
u
r
u
l
u
l
l
d
l
l
u
r
u
for-4
    move-left
end
u
for-4
    move-right
end
u
l
u
l
d
l
u
l
u
l
d
l
u
for-3
    move-left
end
u
l
l
d
l
l
u
l
d
l
u
u
r
u
l
u
for-5
    move-right
end
u
for-3
    move-left
end
u
r
r
u
r
r
u
l
l
u
l
l
u
l
for-5
    move-down
end
for-4
    move-left
end
u
r
u
r
u
l
u
r
u
for-5
    move-left
end
u
r
u
r
d
r
r
for-3
    move-up
end
l
l
d
for-4
    move-left
end
u
l
d
d
l
d
r
d
r
d
l
d
l
d
r
r
u
r
u
for-4
    move-right
end
d
d
l
d
d
for-3
    move-left
end
d
for-6
    move-right
end
for-4
    move-down
end
l
d
r
d
d
r
r
u
l
u
r
r
for-4
    move-down
end
l
l
d
l
d
d
r
d
d
for-3
    move-right
end
for-3
    move-down
end
l
l
u
for-7
    move-left
end
u
l
l
d
l
for-4
    move-up
end
r
u
r
r
u
r
r
u
u
l
d
l
l
u
r
u
for-3
    move-up
    move-right
end
u
for-3
    move-left
end
u
l
l
d
l
l
u
u
r
r
for-3
    move-up
end
for-3
    move-left
end
for-9
    move-down
end
r
for-3
    move-up
end
r
r
for-5
    move-down
end
for-3
    move-left
end
for-4
    move-down
end
r
d
l
d
r
d
d
r
d
d
l
u
l
d
d
r
d
r
u
r
for-3
    move-up
end
for-3
    move-right
end
d
l
l
d
d
r
r
d
l
l
d
for-4
    move-left
end
d
r
r
d
r
d
r
r
u
l
u
r
r
d
r
for-4
    move-up
end
r
r
d
d
l
for-3
    move-down
end
l
d
r
r
for-3
    move-down
end
l
d
r
d
r
d
d
l
for-7
    move-down
end
r
d
l
l
for-3
    move-up
end
for-3
    move-left
end
u
r
r
u
r
u
u
l
l
u
u
l
for-3
    move-up
end
l
for-3
    move-down
end
for-3
    move-left
end
u
r
u
r
u
u
r
u
u
l
d
l
u
u
l
u
l
for-3
    move-down
end
r
d
r
d
l
l
for-4
    move-down
end
r
d
d
for-3
    move-right
end
for-4
    move-down
end
r
d
r
r
d
d
r
r
d
d
l
d
l
l
for-4
    move-down
end
r
d
d
r
d
r
r
d
d
r
for-4
    move-down
end
l
d
d
for-3
    move-left
end
d
d
r
d
l
for-4
    move-down
end
for-4
    move-left
end
d
for-3
    move-left
end
d
r
d
l
for-3
    move-down
end
r
r
d
r
d
l
d
for-3
    move-right
end
d
d
l
d
l
u
u
l
l
u
u
l
for-7
    move-down
end
r
d
r
for-3
    move-up
end
for-4
    move-right
end
d
l
d
l
l
d
d
for-3
    move-left
end
for-5
    move-down
end
r
d
l
d
r
d
r
for-7
    move-up
end
for-5
    move-right
end
for-6
    move-down
end
l
u
u
l
for-3
    move-down
end
l
u
l
d
d
l
d
l
l
d
d
r
d
l
for-3
    move-down
end
r
r
d
d
r
d
d
l
l
u
l
for-4
    move-down
end
r
d
r
d
l
l
d
d
r
u
r
for-4
    move-down
end
l
d
l
for-8
    move-down
end
r
r
d
l
l
d
r
r
d
l
l
d
d
r
r
d
r
r
u
r
r
u
u
r
for-3
    move-down
end
l
d
d
r
u
for-3
    move-right
end
d
r
r
u
u
l
u
for-3
    move-left
end
for-6
    move-up
end
r
r
u
for-3
    move-right
end
d
d
for-5
    move-right
end
u
u
r
d
d
r
r
d
d
r
r
u
l
u
r
u
l
l
u
u
r
u
r
u
u
r
d
r
for-4
    move-down
end
r
u
r
d
d
r
d
d
r
r
for-3
    move-up
end
l
u
r
r
u
l
u
u
l
u
l
l
u
l
u
u
l
d
l
l
u
l
u
r
for-3
    move-up
end
for-3
    move-right
end
u
r
r
u
l
l
u
l
l
d
d
for-5
    move-left
end
u
for-3
    move-left
end
u
for-5
    move-right
end
u
u
l
d
l
u
u
r
r
u
u
l
u
for-3
    move-right
end
d
l
for-4
    move-down
end
for-3
    move-right
end
u
l
u
u
r
u
u
r
u
l
for-3
    move-up
    move-up
    move-right
end
r
d
l
for-3
    move-down
end
r
for-3
    move-down
end
l
u
l
d
d
l
d
d
for-4
    move-right
end
for-6
    move-up
end
r
r
for-4
    move-down
end
for-3
    move-right
    move-down
end
d
l
d
d
r
d
l
d
d
l
d
r
for-3
    move-down
end
r
u
r
r
u
u
r
u
r
r
d
l
d
l
d
d
l
d
r
r
u
u
for-3
    move-right
    move-down
end
d
l
d
for-3
    move-right
end
u
l
u
r
u
u
l
l
u
u
l
u
r
r
u
u
r
u
r
d
r
r
u
u
r
u
u
for-3
    move-left
end
d
d
l
u
l
d
l
for-3
    move-down
end
l
for-5
    move-up
end
for-3
    move-left
end
d
d
r
u
r
d
d
l
l
d
l
l
u
r
for-3
    move-up
end
l
for-4
    move-up
end
r
d
d
r
d
for-3
    move-right
end
u
l
u
l
l
u
u
l
u
u
r
u
u
l
l
d
l
l
u
u
l
l
d
l
u
u
l
u
u
l
l
u
r
u
r
r
u
l
l
u
l
for-3
    move-up
end
r
r
d
r
r
d
d
r
r
d
d
for-6
    move-right
end
d
r
d
d
r
for-3
    move-up
end
l
u
l
u
l
l
d
l
l
u
r
u
r
r
u
for-3
    move-right
end
u
u
l
u
u
for-3
    move-right
end
u
u
for-3
    move-left
end
d
l
u
u
l
for-3
    move-down
end
l
l
d
for-3
    move-right
end
d
d
l
l
u
for-5
    move-left
end
u
u
r
r
u
r
u
for-4
    move-up
    move-right
end
r
r
u
r
r
u
r
r
d
r
d
l
d
l
l
d
d
for-4
    move-right
end
d
r
u
r
d
d
r
d
l
d
l
u
u
l
l
u
l
l
d
d
r
d
r
u
r
for-3
    move-down
end
r
u
for-3
    move-right
end
d
l
d
l
l
d
r
r
d
d
r
r
u
l
u
u
r
for-3
    move-up
end
l
for-3
    move-up
end
l
u
u
r
r
for-4
    move-down
end
r
d
r
u
u
for-3
    move-right
end
d
r
r
u
for-3
    move-right
end
d
r
d
for-8
    move-right
end
d
d
for-3
    move-left
end
d
d
for-3
    move-left
end
for-5
    move-down
end
r
r
d
d
l
d
d
for-4
    move-left
end
u
l
d
for-3
    move-left
end
d
l
d
for-3
    move-left
end
d
d
r
r
for-9
    move-down
end
for-4
    move-left
end
for-8
    move-down
end
for-3
    move-right
end
d
l
for-3
    move-down
end
l
for-4
    move-down
end
l
l
for-5
    move-down
end
l
d
for-4
    move-left
end
for-4
    move-down
end
r
d
for-4
    move-right
end
for-3
    move-down
end
l
l
d
l
for-6
    move-down
end
r
r
for-4
    move-down
end
l
d
d
l
d
d
for-3
    move-right
end
u
for-3
    move-right
end
u
r
for-3
    move-up
end
for-3
    move-right
end
u
r
u
u
r
u
u
l
d
l
l
d
d
l
d
l
for-3
    move-up
end
l
u
l
u
for-3
    move-right
end
u
l
u
u
r
d
r
for-3
    move-down
end
r
u
u
for-6
    move-right
end
d
for-3
    move-right
end
for-3
    move-up
    move-left
    move-left
end
u
for-3
    move-right
end
d
r
u
r
d
r
u
r
d
for-3
    move-down
    move-right
end
d
d
r
r
d
r
d
d
for-3
    move-right
end
d
d
r
d
d
l
d
r
d
for-3
    move-right
end
u
r
r
u
for-3
    move-left
end
u
r
u
r
u
l
u
r
for-5
    move-up
end
r
u
l
u
for-3
    move-right
end
u
r
u
u
r
u
for-3
    move-left
end
u
u
r
d
for-3
    move-right
end
d
r
for-4
    move-up
end
for-4
    move-right
end
for-3
    move-down
end
l
d
l
u
u
r
u
l
l
for-4
    move-down
end
l
l
d
l
for-3
    move-down
end
for-4
    move-right
end
d
r
d
r
for-3
    move-down
end
r
d
for-3
    move-right
    move-up
end
u
u
l
l
d
r
d
l
l
for-3
    move-up
end
r
r
u
r
r
u
r
r
d
l
d
l
d
r
r
d
r
u
u
r
u
l
u
r
r
u
for-4
    move-right
end
d
l
for-3
    move-down
end
r
r
u
r
d
r
r
for-3
    move-down
end
l
u
u
l
l
d
d
l
d
l
l
u
u
l
u
l
l
d
for-3
    move-left
end
u
l
d
d
r
d
l
l
d
l
d
r
for-3
    move-down
end
r
r
d
r
u
r
r
u
for-4
    move-right
end
d
r
for-3
    move-up
end
for-3
    move-right
end
d
r
r
u
l
u
u
r
d
r
u
for-3
    move-right
end
u
for-3
    move-left
end
u
l
for-4
    move-up
end
l
d
l
u
l
u
r
r
u
l
u
u
r
for-3
    move-up
end
l
d
d
l
d
d
for-3
    move-left
end
u
u
l
for-3
    move-up
end
for-4
    move-left
end
for-3
    move-up
end
for-7
    move-right
end
d
for-3
    move-right
end
d
l
d
r
r
u
r
for-3
    move-down
end
for-3
    move-right
end
u
u
l
for-3
    move-up
end
for-3
    move-right
end
d
d
r
u
u
r
r
d
r
d
l
d
r
d
l
l
u
for-3
    move-left
end
for-4
    move-down
end
r
r
for-4
    move-down
end
l
u
l
u
r
u
l
l
u
u
for-3
    move-left
end
for-3
    move-down
    move-right
end
d
l
for-3
    move-down
end
r
u
u
r
d
d
r
for-3
    move-down
end
r
d
r
d
l
l
u
l
d
l
d
for-3
    move-right
end
d
l
l
d
l
u
for-3
    move-left
end
d
d
l
d
d
for-7
    move-right
end
u
for-4
    move-right
end
for-3
    move-up
end
r
for-4
    move-down
end
r
for-6
    move-up
end
r
r
d
d
for-3
    move-right
    move-up
end
for-4
    move-up
end
l
l
d
l
d
r
d
l
d
l
u
l
l
d
l
d
d
l
u
l
u
u
r
r
for-5
    move-up
end
l
l
d
r
for-3
    move-down
end
for-3
    move-left
end
u
r
r
u
l
l
u
r
u
u
for-4
    move-right
end
u
l
u
u
l
u
l
u
r
r
d
r
d
r
for-3
    move-up
end
l
u
l
u
r
u
u
r
d
r
u
u
for-3
    move-left
end
d
l
u
u
r
u
r
u
u
l
u
u
r
r
u
r
u
l
u
l
d
d
l
u
l
for-5
    move-up
end
for-3
    move-right
end
d
r
u
u
r
r
d
r
for-4
    move-up
end
r
r
for-3
    move-down
end
r
d
d
for-5
    move-right
end
for-3
    move-down
end
l
d
for-4
    move-down
    move-right
end
for-4
    move-up
end
r
r
u
r
for-3
    move-down
end
r
d
l
d
r
r
u
u
for-3
    move-right
end
u
l
u
u
r
d
r
r
u
u
l
for-5
    move-up
end
r
u
r
u
for-4
    move-right
end
u
l
l
u
l
u
r
u
l
l
for-6
    move-up
end
for-7
    move-left
end
u
l
for-3
    move-down
end
l
u
l
l
u
r
r
u
u
r
u
r
for-5
    move-up
end
l
l
u
u
for-3
    move-right
end
u
u
l
l
d
l
u
l
u
for-4
    move-left
end
u
l
for-3
    move-up
end
l
for-3
    move-left
    move-up
    move-up
end
u
for-3
    move-right
end
for-3
    move-down
end
r
d
d
l
d
r
r
for-5
    move-up
end
for-3
    move-right
end
for-3
    move-down
    move-right
    move-right
end
for-4
    move-down
end
l
u
l
d
d
l
u
l
d
for-3
    move-left
end
d
for-3
    move-right
end
d
r
u
r
d
for-3
    move-right
    move-up
end
u
r
u
for-3
    move-right
end
u
u
for-6
    move-right
end
d
for-3
    move-right
end
for-4
    move-down
end
for-3
    move-right
    move-right
    move-down
end
r
for-4
    move-down
end
r
d
r
for-6
    move-down
end
l
u
for-5
    move-left
end
for-4
    move-down
end
r
d
d
r
u
r
for-3
    move-down
end
l
u
for-3
    move-left
end
u
u
for-3
    move-left
end
d
l
u
u
l
d
d
l
d
d
r
u
for-4
    move-right
end
d
l
l
d
r
r
d
r
d
d
l
d
r
d
l
d
r
d
d
l
l
d
for-3
    move-left
end
for-4
    move-down
end
l
d
for-7
    move-left
end
d
l
d
l
l
d
l
d
l
l
d
d
r
u
r
r
for-3
    move-down
end
for-4
    move-right
end
d
r
d
l
for-3
    move-down
end
r
r
d
l
d
l
u
l
for-4
    move-up
end
l
u
for-3
    move-left
end
u
u
l
l
d
r
d
l
l
d
r
d
d
r
u
for-3
    move-right
end
d
r
d
l
d
l
u
u
l
for-5
    move-down
end
r
d
d
l
u
l
d
l
l
d
for-4
    move-right
end
d
l
d
l
d
for-5
    move-right
end
for-7
    move-up
end
r
r
d
for-3
    move-right
end
u
l
l
u
r
u
u
for-3
    move-right
end
d
r
r
d
for-3
    move-left
end
d
r
d
l
d
r
r
d
d
l
u
for-5
    move-left
end
d
d
l
for-4
    move-down
end
r
u
r
d
r
u
r
u
u
r
u
r
d
d
l
for-3
    move-down
end
for-6
    move-left
end
d
d
r
d
d
r
d
r
u
u
l
u
r
r
u
r
d
r
r
d
l
l
d
d
for-3
    move-right
end
u
u
r
r
u
u
l
l
u
r
r
u
l
l
u
r
u
r
u
l
u
for-3
    move-right
end
for-6
    move-up
end
l
l
u
u
l
u
r
r
d
d
r
u
r
u
l
u
r
u
l
u
u
r
d
r
for-3
    move-up
end
for-3
    move-left
end
d
l
d
l
l
d
l
for-3
    move-up
end
r
d
r
u
r
u
l
u
for-4
    move-right
end
d
r
u
u
r
r
d
d
l
for-3
    move-down
end
r
d
l
d
l
for-3
    move-down
end
r
d
l
l
d
r
d
r
r
for-6
    move-up
end
r
for-3
    move-down
end
for-4
    move-right
end
u
for-3
    move-right
end
u
r
u
r
for-3
    move-up
end
for-4
    move-left
end
d
d
l
l
u
r
u
u
for-4
    move-right
end
u
r
d
r
d
d
r
r
for-3
    move-down
    move-left
end
d
d
l
l
d
l
u
for-3
    move-left
    move-down
end
r
r
d
l
l
d
l
l
d
d
r
d
r
d
d
r
d
for-3
    move-left
end
d
d
l
u
u
for-3
    move-left
end
d
l
u
u
for-4
    move-right
end
u
r
u
l
l
d
for-5
    move-left
end
for-4
    move-down
end
r
r
d
l
l
for-3
    move-down
end
r
u
u
r
d
r
for-3
    move-up
end
r
d
for-4
    move-right
end
d
d
for-3
    move-left
end
u
l
for-3
    move-down
end
r
u
for-4
    move-right
end
u
r
u
r
d
r
u
u
l
u
l
l
u
r
r
for-3
    move-up
end
l
for-3
    move-up
    move-right
end
u
u
l
u
for-3
    move-right
end
d
l
d
d
r
r
d
d
l
for-3
    move-down
end
for-3
    move-right
end
for-5
    move-down
end
r
d
d
r
u
for-3
    move-right
end
d
for-3
    move-right
    move-up
    move-up
end
u
l
u
u
l
for-3
    move-down
end
l
u
u
l
u
u
l
d
l
l
u
r
u
for-3
    move-up
    move-right
end
u
for-4
    move-left
end
for-4
    move-down
end
l
l
u
r
u
l
l
u
r
u
l
u
r
u
u
l
u
r
r
d
r
r
u
r
d
d
for-3
    move-right
end
for-4
    move-down
end
r
d
l
d
r
d
r
d
d
r
u
r
d
r
d
r
u
u
r
r
u
for-4
    move-right
end
d
for-3
    move-left
end
d
r
for-3
    move-down
end
l
d
l
d
r
d
for-4
    move-right
end
move-down'''
for e in s.split('\n'):
    if e == 'r':
        print('move-right')
    elif e == 'l':
        print('move-left')
    elif e == 'u':
        print('move-up')
    elif e == 'd':
        print('move-down')
    else:
        print(e)