Manhattan man sentenced to 36 years for sex crimes