do{++$d,print"L "while<><++$|||${$y=($x+30**($d&=3))%-901}&&$$y^$d^6;$$x=$d^4;$x=$y;print"F R ";--$d}until<>=~/M/