Here's the answer:
“il giudice diede al ladro cinque anni di prigione”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Italian with Memrise get this phrase correct 95.05% of the time!