Solved ICPCBalloons Problem