Task: Program Execution
Input (English): I, 5119, X, c, 7517, W, 2693, W, A, g, C, 3987, 1079, W, b, A, 3415
Output (English): 23810