Three burglars have been jailed – less than a week after they were spotted crawling out of a broken pharmacy window.