Task: Program Execution
Input (English): 5, 8, ['j', '8147', 'o', 'x', '1555', 'm', 'p', 'Q', 'r', '3981', 'J', 'C', '3789', 'p', 'f', '5451']
Output (English): 1555, m, p, Q