Task: Program Execution
Input (English): 6, 10, ['6521', '5347', 'X', '9715', '4691', 'K', 'G', 'k', 'O', 'W', '2229', '9765', 'v', '5533', 'D', '3519', '1343', '2525']
Output (English): 0