Below is the input file. I think this is not the word file i guess.
Note: This code is not developed by me. So little confused