input file of 1st problem