Task: Program Execution
Input (English): 8, 7, P, 3, S
Output (English): [['8', '7', 'P', '3'], ['8', '7', 'P', 'S'], ['8', '7', '3', 'S'], ['8', 'P', '3', 'S'], ['7', 'P', '3', 'S']]