Task: Program Execution
Input (English): K, T, Q, W, 4667
Output (English): 4