Pretty simple to understand. If the person had 2 x chromosomes, then the person is female. If the person has an x and a y chromosome, the person is male.
Covers more than 99% of births.
And when does KY come into the picture