Task: Program Execution
Input (English): A, 3427, N, 7875, 9881, h, k, E, 5171, Q, d, h, 697, 9913, L, 1113, 8465, m, 3655, 7117, 4971, 8543, g, 9051
Output (English): 1, 3, 6, 7, 8, 10, 11, 12, 15, 18, 23