Problem 67

same method as 16