Task: Program Execution
Input (English): R, r, 1917, D, m, L, o, 9823, Y, K, 2707, 9519, 251, 2431
Output (English): 1, 2, 4, 5, 6, 7, 9, 10