Task: Program Execution
Input (English): 5577, 1577, G, q, 6953, w, 5419, 3429, B, v, B, X, b, 7941, i, 5283, R, 2917, Q, J, H
Output (English): 5577, 1577, 7, 17, 6953, 23, 5419, 3429, 2, 22, 2, 24, 2, 7941, 9, 5283, 18, 2917, 17, 10, 8