Task: Program Execution
Input (English): 5, 6, ['5955', 'p', '5917', '379', 'N', 'X', 'N', 'v', '8639']
Output (English): N, X