Task: Program Execution
Input (English): K, 9761, Q, 6063, G, K
Output (English): 9761, 6063