Task: Program Execution
Input (English): 7, 10, ['r', '4879', '6143', '3845', '5911', 'W', 'a', 'd', '3791', 'Z', '8869', '3347', '5371']
Output (English): a, d, 3791, Z