Task: Program Execution
Input (English): 8, 15, ['2947', '837', 'A', 'Q', '4931', '375', '7763', 'Z', '4833', 'H', 'Z', '6891', 'Y', 'r', 'g', 'R']
Output (English): g, r, Y, 6891, Z, H, 4833, Z