Task: Program Execution
Input (English): 1, 6, ['X', 'Z', '7287', 'A', '6947', '4751', 'C', 'r', 'k', 'S', 'J', 'j', 'G', 'n', '9581', '4713', '9441']
Output (English): X, C, G