write rpg.h, fill input.txt with real data