The Brilliant Military Advisor of the Hidden Leaf

is episode 267 of the Naruto: Shippūden anime.