Task: Program Execution
Input (English): 5825, 9725, 7295, w, 4761, f, P
Output (English): 4, 6, 7