The bad student achieved a high grade thanks to anal sex with his teacher