Task: Program Execution
Input (English): 1, 1, ['9031', '3561', 'w', 'a']
Output (English): 1309