Task: Program Execution
Input (English): q, 503, 5885, 5181, 3151, X, K, Y, 4011, 6221, l, 4115, M, 735, 9379, A, 549
Output (English): 17, 503, 5885, 5181, 3151, 24, 11, 25, 4011, 6221, 12, 4115, 13, 735, 9379, 1, 549