Task: Program Execution
Input (English): 1531, W, G
Output (English): 1