Task: Program Execution
Input (English): h 2103 6271 6359 p 3307 m 4065 M 6393 X 5663 7599 8257 3115 N E P 3331 9999 9479 7949 3637 3647 q 2503
Output (English): 2, 3, 4, 6, 8, 10, 12, 13, 14, 15, 19, 20, 21, 22, 23, 24, 26