Task: Program Execution
Input (English): f, 19, 49, 337, s
Output (English): 1, 3, 4, 7, 9