They came from everywhere: Engimatica pressing the pace before taking the lead, Girl Powder closing from the rear, just ahead of Risque Express, and Rochela sitting in a perfect stalking position.

Though they came from everywhere, they all ended up in more or less the same place: filling out the superfecta, all within three-quarters of a length of winning. That led to some kind of profitable race for a lucky handful in Parx Racing’s fifth race Wednesday afternoon, a $5,000 beaten claimer.

Oh, and they had one other thing in common: they were all more than 10-1. In fact, winner Engimatica (78-1), runner-up Girl Powder (97-1), and fourth-place Rochela (101-1) were three of the four longest shots on the board. The longest shot on the board, 114-1 Woman Flyer, ended up fifth in the 11-horse field.

Enigmatica, who won by a half-length under apprentice jockey Wilfredo Garcia, paid $158.80 to win. The two-dollar exacta, with 97-1 Girl Powder in second, returned $3,400.20. The dime super — remarkably, someone had it — paid $21,246.18.

With the win, Enigmatica, a six-year-old Congrats mare, snapped a 12-race losing streak. Her jockey ended a 36-race losing skein. and trainer Trevor Gallimore won for the first time after 43 consecutive defeats.

Here’s hoping they cashed a ticket.