I’m not clear with how the input is given and also the output.
The input says you will be given D lines each containing a word. After that there will be a line.
So in the output do we have to correct just that line.(which is after D lines in input)
Or we have to correct every word given in D lines in input.
It also says “Output the corrected text in the same format as it is given to you in the input.” Does that mean our ouput will also contain D lines containing corrected word(if erroneous).