a=gets.chomp.to_i b=[] a.times do |i| b[i] = gets.chomp! end b.each do |c| s = "" c = c.to_i while (c >= 1) if(c%2==1) c /= 2 s+='L' elsif(c%2==0) c /= 2 c -= 1 s+='R' end end puts s.reverse puts ("\n") end