Task: Program Execution
Input (English): n, x, h, 57, e, f, 285, g
Output (English): 2, 5, 7, 8