Solved day twelve