Task: Program Execution
Input (English): P, G, 1, m
Output (English): [['P', 'G', '1'], ['P', 'G', 'm'], ['P', '1', 'm'], ['G', '1', 'm']]