Solved day seventeen