This is really pretty simple: Wanna know what gender someone is? Pull down their pants and look at the front of their body, right where the legs meet*.
*Red herring hermaphrodite notwithstanding.
generally hermaphrodite babies are dead before puberty if not sooner.