Three friends are competing in a race