problem 18 solved
solved problem 67, modified 18