solved problems in input output chapter