Task: Program Execution
Input (English): u, p, 5309, i, 2587, a, S, 2605, 7837, d, 2975, M, f, 8355, 8459, m
Output (English): 3, 5, 8, 9, 11, 14, 15