Task: Program Execution
Input (English): e, M, G, c, c, 6781, O, D
Output (English): 5, 13, 7, 3, 3, 6781, 15, 4