Task: Program Execution
Input (English): 2, 7, ['w', 'c', 'X', 'w', 'r', '1495', 'Q', 'R', '7209', '6129', 'j', '8241']
Output (English): c, X, w, r, 1495, Q