Man gets 12 years for defilement