Task: Program Execution
Input (English): Y, H, q, d, 1967, 797, 6135, f, c, k, P, o, N, E, 3269, 7597, M, 6399
Output (English): 5, 6, 7, 15, 16, 18