Task: Program Execution
Input (English): 7, 7, ['X', 'V', 'i', '3485', 'D', '5733', 'S']
Output (English): S