Task: Program Execution
Input (English): [35, 'Q', '987', '1429', 'P', 7997], ['q', 9863, '987', '1429', 'R', 'p']
Output (English): 987, 1429