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