Task: Program Execution
Input (English): N, D, H, 4359, 7983, i, 6733, x, s, 4525, 8951, 6959, f, 2749, 8001, 3749, 2431, S, D, F
Output (English): 14, 4, 8, 4359, 7983, 9, 6733, 24, 19, 4525, 8951, 6959, 6, 2749, 8001, 3749, 2431, 19, 4, 6