Solved prob36.