Task: Program Execution
Input (English): e, 9917, m, p, v, 4941, 2435, D, 8933, 7481, 6417, 4467, 2875, 8531, K, 2165, 1361, U, 917, 5791, 4471
Output (English): 1, 3, 4, 5, 8, 15, 18