Task: Program Execution
Input (English): 797, 7517, 8031, 6751, P, M, 5565, k, 1587, 1921, G, 1211, K
Output (English): P, M, k, G, K, 797, 7517, 8031, 6751, 5565, 1587, 1921, 1211