partial naive solution for 106