Task: Program Execution
Input (English): g, 6981, 8975, 8149, i, T, M, w, m, v, 649
Output (English): 7, 6981, 8975, 8149, 9, 20, 13, 23, 13, 22, 649