Task: Program Execution
Input (English): 8, 9, ['8479', 'G', 'Q', '3783', '9791', '8809', '5289', '2095', '899', 'D', '8413', 'G', '6049', '8985']
Output (English): 2994