With three or more parties involved, this is known as the Byzantine Lads’ Problem.
14