Code to generate input and GOLD output