Task: Program Execution
Input (English): 2905, L, 433, 3705, 8577, 3053, H, 5599, 7499, 347, v, 1505, 9085, 8877, 1489, 1759, M, P, 4629, 7557
Output (English): 2, 7, 11, 17, 18