n,m = gets.split.map(&:to_i) s = gets.chomp a = ["L","R"] t = 0 while s != "Merry Christmas!" s = s.to_i if s > 0 puts "F" STDOUT.flush else puts a[t] STDOUT.flush s = gets.to_i if s == 0 puts a[t] STDOUT.flush s = gets.to_i puts a[t] STDOUT.flush t = 1 - t else puts "F" STDOUT.flush end end s = gets.chomp end