Task: Program Execution
Input (English): 3, 3, ['y', 'o', '4857', '1743']
Output (English): 4857