Task: Program Execution
Input (English): 337, 477, 1, n, h
Output (English): 1, 3, 4, 7