Task: Program Execution
Input (English): ['f', 4503, '2975', '3109', '1947', 'z', 7349, 1769], [4959, 8977, '2975', '3109', '1947', 'd', 2747, 'Q']
Output (English): 2975, 3109, 1947