Task: Program Execution
Input (English): n, J, 1947, 5543, Y, 8099, 9885, 8979, 6649, 9765, 4059, 8651, 9303, h, C, G, 2347, n, i, 9301
Output (English): 14, 10, 1947, 5543, 25, 8099, 9885, 8979, 6649, 9765, 4059, 8651, 9303, 8, 3, 7, 2347, 14, 9, 9301