male on the motor side, female on the battery side. so the ??? should be male. Just do the exact same as what the Tamiyas are.
and you can buy Genuine Deans Ultra plugs from your local hobby store for about $4~$5 each pair of male/female. No reason to buy them online and wait for them to ship it.