Task: Program Execution
Input (English): O, M, i, 6017, 9789, h, 481, g, d, 3027, K, 6013, W, Z, R, C
Output (English): 25327