// yukicoder: No.331 CodeRunnerでやれ // bal4u 2019.8.15 #include #include int action(char ch) { char s[20]; if (ch) { putchar(ch), putchar('\n'); fflush(stdout); } scanf("%s", s); if (*s == 'M') exit(0); return atoi(s); } int main() { int d = action(0); while (1) { if (d == 0) d = action('L'); else d = action('F'); } return 0; }