Attached is the input file and the output(.txt) should be of below format
Output
71890 engine e
71890 pumpa p
71890 pump