problem 1005 of pku online judge