Task: Program Execution
Input (English): 5881, 7861, l, m, W, Q, 8521, K, 3431, K, 8147, J, T
Output (English): 33841