A judge would issue a yellow card for the first infraction committed by a competitor, and if the same judge detects the second infraction from the same competitor a red card is issued.
A judge would issue a yellow card for the first infraction. This first infraction is committed by a competitor. A red card is issued. The same judge detects the second infraction from the same competitor.