Task: Program Execution
Input (English): 1191, 7547, g, p, q, 2447, o, 5095, n, 1709, s, z, 185, U, 1389, 9921, 5305, 1087, F, 9831, O
Output (English): 1191, 7547, 2447, 5095, 1709, 185, 1389, 9921, 5305, 1087, 9831