Task: Program Execution
Input (English): 3, 5, ['X', 'R', 's', 'S', 'f']
Output (English): fSs