Task: Program Execution
Input (English): 1, 2, ['D', 'U', 'J']
Output (English): 0