Task: Program Execution
Input (English): 2585, M, 9207, 7005, N, H, 8931
Output (English): 1, 3, 4, 7