Task: Program Execution
Input (English): 1, 8, ['S', 'O', 'X', '4105', 'A', '7971', '9887', 'P']
Output (English): SOX4105A79719887P