Task: Program Execution
Input (English): G, 7849, N, 4117, 6027, 6831, 3027, 6469, 1515, 3471, 7973, 7107, 5319
Output (English): 7, 7849, 14, 4117, 6027, 6831, 3027, 6469, 1515, 3471, 7973, 7107, 5319