What do you do when neo-Nazis keep flooding your town?

One German city was faced with exactly that problem.

A viral post on Twitter from Cleve Jones shares the story of Wunsiedel in northeast Bavaria, which has been a neo-Nazi destination since it was once home to the grave of Adolf Hitler’s deputy, Rudolf Hess.

But in 2014, sponsors agreed to donate money for each step marched by the neo-Nazis, with the cash going to programs that fight Nazis, the Guardian reported at the time.

It was billed as Germany’s most involuntary walkathon.

Instead of greeting the group with protests, they put up banners welcoming them to the “Nazis Against Nazis” walkathon, according to a video on a YouTube channel run by the organization that promoted it.

Mocking signs throughout the route encouraged them to keep walking to raise more money, and organizers put out a table of bananas to help them keep up their energy so they could keep walking ― and keep raising money.

They even painted numbers in the ground so the neo-Nazi marchers would be forced to see how much money they’d collected at every milestone.

And at the end, they passed out certificates reminding them of how much money they raised to fight Nazis: 10,000 euros, or close to $12,000, going to EXIT Deutschland, a group that helps neo-Nazis to defect from the movement.

A report on the event by Britain’s SOFII Foundation found that it was so successful other communities began emulating it.

Story continues

“The campaign inspired other cities in Germany and other countries to have a new, creative and amusing way of handling the problem of Nazi-walks,” the organization said.

Also on HuffPost

Love HuffPost? Become a founding member of HuffPost Plus today.

Four-year-old Leo Griffin leaves an Aug. 13 Chicago protest that mourned the victims of the white supremacist rally in Charlottesville, Virginia, the day before.

People hold signs at a vigil on Aug. 13 in Chicago for the victims in the previous day's violent clashes in Charlottesville.

People gather in downtown Chicago on Aug. 13 to protest the alt-right movement and to mourn Heather Heyer, who was killed in Charlottesville when a car plowed into a crowd of counterprotesters.

Demonstrators hold signs outside the White House on Aug. 13 during a vigil in response to the death of a counterprotester in the Aug. 12 "Unite the Right" rally.

A woman writes "Silence is Compliance" with a chalk on the ground at Federal Plaza Square in Chicago during an Aug. 13 protest in response to the violence that erupted in Charlottesville.

People gather in downtown Chicago on Aug. 13 to protest the alt-right movement.

Ahead of President Donald Trump's visit, about 400 demonstrators on Fifth Avenue near Trump Tower in New York attend a rally protesting the violence in Charlottesville.

A demonstrator holds a banner reading "Only 1 Side Love" during a protest at Federal Plaza Square in Chicago on Aug. 13.

People gather in front of the White House to hold a vigil on Aug. 13, one day after the violence in Charlottesville.

A demonstrator holds a banner reading "Hate Has No Home Here. Love Will Win" during an Aug. 13 protest at Federal Plaza Square in Chicago.

This article originally appeared on HuffPost.