Task: Program Execution
Input (English): 1, 1, ['D', 'W', '5783']
Output (English): 0