Task: Program Execution
Input (English): 5, 8, ['5747', 'x', 'A', 'U', 'V', '611', '6167', '2907', '4825', 'H', '3287', 'h', 'D', '1021', 't', '4975', '203', '3935', 'M', '9753']
Output (English): V61161672907