Task: Program Execution
Input (English): 1, 10, ['3501', 'H', '7825', 'A', '9703', 'N', '9431', '4615', 'O', '7415', '1315', '1031', 'G', '8909', 'T', '5725', 'x', '2753']
Output (English): 5147O51641349N3079A5287H1053