POJ 1004 and 1005, easy.