Task: Program Execution
Input (English): H, n, 9317, C, W, x
Output (English): 9317