naive solution works
naive solution works