Task: Program Execution
Input (English): q, 5383, x, P, 6447, z, c, X, Q, 4937, M, 8859, B, 4061, Z, 5693, z, 2729, 3721, 3539, x, a, B, 5357
Output (English): 17, 5383, 24, 16, 6447, 26, 3, 24, 17, 4937, 13, 8859, 2, 4061, 26, 5693, 26, 2729, 3721, 3539, 24, 1, 2, 5357