Task: Program Execution
Input (English): 2, 3, ['V', '477', '1857', 'H', 'Z', 'n', 'd']
Output (English): 477, 1857