Task: Program Execution
Input (English): 6827, 5603, S, x, f, 5513, 5721, c, 249, M, N, 8317, F, 5775, 895, 5617, 3669, 3393, 9319, 871
Output (English): 6827, 5603, 19, 24, 6, 5513, 5721, 3, 249, 13, 14, 8317, 6, 5775, 895, 5617, 3669, 3393, 9319, 871