Task: Program Execution
Input (English): W, b, K, a, R, l, d
Output (English): -1