Task: Program Execution
Input (English): 413, 5991, 1567, 3527, 8059, w, M, 4581, B, h, 4973, 9247
Output (English): 1, 2, 3, 4, 5, 8, 11, 12