In which country did Leonardo da Vinci spend the last three years of his life?

In which country did Leonardo da Vinci spend the last three years of his life?