Task: Program Execution
Input (English): 41, 373, 103, 401, e
Output (English): 0, 1, 3, 4, 7