Task: Program Execution
Input (English): 18, 21, ['o', '975', 'X', '3017', '5899', '5587', '2809', '2845', '8847', '3561', 'x', '3071', '669', '3145', 'z', 'r', '8687', '371', '7357', 'f', 'M', '9297', 'm']
Output (English): 7728