solve 1009 and 1010