Task: Program Execution
Input (English): 8729, 5057, 1905, L, M, 9237, D, Y, 5477, 4503, 4059, 8455, g, R
Output (English): 4, 5, 7, 8, 13, 14