input file of 2nd problem