Task: Program Execution
Input (English): 3, 10, ['k', '1449', '1085', '701', 'B', '5633', '4451', '249', '6449', '3493', '223', '2681', '6453', 'E', '2391', '1587', '7381', '1829', '8107', 'v', 'G']
Output (English): 1085, 6453