Task: Program Execution
Input (English): 5987, f, 9119, 4625, X
Output (English): 2, 5