The Rules of the Referral Contest