Task: Program Execution
Input (English): 8209, J, 8913, K, 3875, 1351, 541, D, N, 4295, I, 6145, M, 8937, i, G, 2077, 947
Output (English): 1, 3, 5, 6, 7, 10, 12, 14, 17, 18