The solutions have been provided by the Scientific Commitee of IOI'97. NOTE: There is an opinion that provided solutions do not meet quality standards. Some should not even have scored many points.