Task: Program Execution
Input (English): 5171, Z, P, 4025, f, Q, K, Z, L, 4331, 3637, 4421
Output (English): 1, 4, 10, 11, 12