Task: Program Execution
Input (English): q, B, 3369, 7367, a, 1757, 1071, K, 6211, 4965, 3411, f, 3379, P
Output (English): 3369, 7367, 1757, 1071, 6211, 4965, 3411, 3379