ES tickets are scanned (barcode or magnetic strip depending on whether it's an e-ticket or card) at gates as you enter the terminal. If the gates fail or computer says no, there are booths to do this manually.
Not that they really care about the details of it - there's a healthy trade in resold unwanted ticket segments, regardless of name or sex!