Task: Program Execution
Input (English): a, 851, 6977, 5139, E, 6757, 5803, P, 609, 6077, X, 6151, Q, n, s, F, 1597
Output (English): 1, 851, 6977, 5139, 5, 6757, 5803, 16, 609, 6077, 24, 6151, 17, 14, 19, 6, 1597