While it was hard to call a winner between Hillary Clinton and Bernie Sanders last night, it’s easy to say who was luckier.

The race between the Democratic presidential hopefuls was so tight in the Iowa caucus Monday that in at least six precincts, the decision on awarding a county delegate came down to a coin toss. And Clinton won all six, media reports said.

The situation came about in precincts where Sanders and Clinton were running neck-and-neck, but there were an odd number of delegates, so they couldn’t be evenly split between the two. That was the case in precincts in Ames, Newton, West Branch, Davenport and two in Des Moines, the Des Moines Register reported.

Univision reporter Fernando Peinado caught one of the Des Moines coin tosses on video:

As did an observer in West Davenport:

While it may seem a chancy way to break a deadlock, official state rules lay out the procedure. Iowa’s Democratic caucus guide says: “Note: In a case where two or more preference groups are tied for the loss of a delegate, a coin shall be tossed to determine who loses the delegate,” the Independent newspaper pointed out.

But it still prompted some tongue-in-cheek reaction on social media:

As many pointed out, these were county caucus deciders, not for the state. “These ties are not for statewide delegate equivalents. They are for county delegates. Those are different, and not nearly as big a deal,” noted Harry Enten on the FiveThirtyEight blog.

Read: Trumped by Cruz: Best Twitter reactions to Republican race in Iowa

Some Iowa Caucus Contests Decided by Coin Tosses

As for that statewide Democratic race, it was too close to call for most of the night. Clinton declared victory early Tuesday morning, with all but one of the Iowa precincts reporting, with 49.9% of the delegates to the state convention. Sanders was a squeak behind, with 49.6% — perhaps the real winner with that unexpected showing. For a blow-by-blow recap, check out our live blog.