Task: Program Execution
Input (English): P, 1679, 4861, v, Y, 4035, D, M, 4439, 3971, r, m
Output (English): 1, 4, 5, 7, 8, 11, 12