Task: Program Execution
Input (English): w, q, 227, 431, 437, 111
Output (English): 1, 2, 3, 4, 7