Task: Program Execution
Input (English): g, E, t, W, k, i, 4923, S, M, N, O, 461, 7653, 7855
Output (English): 20892