Task: Program Execution
Input (English): t, 9047, W, 5365, 2751, 7767, R, 9789, Q
Output (English): 2, 4, 5, 6, 8