Task: Program Execution
Input (English): 2, ['S', 'W', '939', '9041', '7653', 'R']
Output (English): S, W