Task: Program Execution
Input (English): 6247, g, V, W, P
Output (English): 1