Task: Program Execution
Input (English): 355, m, 249, w
Output (English): 2, 3, 4, 5, 9