Task: Program Execution
Input (English): 245, 427, q, 405
Output (English): 0, 2, 4, 5, 7