Task: Program Execution
Input (English): 2, 7, ['5349', 'Y', '5117', '9757', '3315', '8167', '5145', 'h', '5567', '7811', '3359', '2293', '9471', '9421', 'L', '4429', '5681']
Output (English): 5145, 8167, 3315, 9757, 5117, Y