Task: Program Execution
Input (English): 419, 1947, 9863, p, Q, 2699
Output (English): 419, 1947, 9863, 16, 17, 2699