Some wasp species adjust the number of male offspring they produce when sharing fig trees with other wasp species.