Task: Program Execution
Input (English): 47, 107, l, 339
Output (English): 0, 1, 3, 4, 7, 9