Task: Program Execution
Input (English): e, g, 4309, M, 2267, 7633, 4869, 79
Output (English): 3, 5, 6, 7, 8