Task: Program Execution
Input (English): 2, 4, ['d', 'p', '4715', 'J', 'X', 'D', '7107', '2007', 'a']
Output (English): p, 4715, J