Task: Program Execution
Input (English): p, M, h, 669, O, d, u, l, 1901, Z, 1645, E
Output (English): 1, 2, 3, 5, 6, 7, 8, 10, 12