Task: Program Execution
Input (English): 4, 4, ['3141', '7799', 'S', 'R', 'i', 'd', '9747', 'H', '3069', 'Q', '895', '5587', 'x', 'G', 'c', 'p', '6677', 'C', '4875', 's', '1879']
Output (English): R, H, 5587, p, s