Naive solution to 51