Task: Program Execution
Input (English): x, 6721, 5839, 1163, 7319, 1815, Q, 451, S, g
Output (English): 2, 3, 4, 5, 6, 8