Teen sentenced to four years for burglary