Two American athletes who recently staged protests on the medal stand at the Pan American Games were given 12 months of probation, with the head of the U.S. Olympic and Paralympic Committee warning of harsher punishments in the future to any athletes who might stage similar demonstrations.

“It is also important for me to point out that, going forward, issuing a reprimand to other athletes in a similar instance is insufficient,” USOPC CEO Sarah Hirshland wrote to fencer Race Imboden and hammer thrower Gwen Berry in letters sent Tuesday, copies of which were obtained by the Associated Press.

Imboden took a knee on the podium in Lima, Peru, after helping the U.S. men’s foil team win gold. Following her individual win, Berry raised a fist and bowed her head as a rendition of “The Star-Spangled Banner” neared its close.

To compete at the Pan Am Games, athletes had to agree to rules forbidding political demonstrations, and the International Olympic Committee has similar ones in place. Imboden and Berry will be allowed to potentially compete at the 2020 Olympics in Tokyo, but Hirshland signaled in her letter that she wants to head off athlete protests on what would be a vastly bigger stage.

“We recognize that we must more clearly define for Team USA athletes what a breach of these rules will mean in the future,” she wrote (via the AP). “Working with the [athletes and national governing body councils], we are committed to more explicitly defining what the consequences will be for members of Team USA who protest at future Games.”

Shortly after Imboden knelt on the medal stand, a USOPC spokesman said “Race didn’t adhere to the commitment he made to the organizing committee and the USOPC.” A similar statement was issued after Berry’s demonstration.

The spokesman added that USOPC officials respected Imboden’s “rights to express his viewpoints” but were “disappointed” that he did not obey the rules.

Race Imboden: I’m proud to be an American fencing champion. Here’s why I knelt for our anthem.

In a Twitter post the day of his protest, Imboden said that while he was “honored to represent Team USA at the Pan Am Games,” he felt compelled to present a “call for change.”

“My pride … has been cut short by the multiple shortcomings of the country I hold so dear to my heart,” the 26-year-old wrote. Among the issues Imboden said he was protesting: “Racism, Gun Control, mistreatment of immigrants, and a president who spreads hate.”

“For me to kneel during the anthem, it’s the hardest place for me to get to in my sport — the top of the podium,” Imboden told The Washington Post this month, citing former San Francisco 49ers quarterback Colin Kaepernick as an inspiration. “So to sacrifice that moment for a bigger cause was why I chose to do that.”

Berry, 30, said her raised fist was “just a testament to everything I’ve been through in the past year, and everything the country has been through this past year.”

“A lot of things need to be done and said and changed. I’m not trying to start a political war, or act like I’m Miss Know-it-all or anything like that,” she added. “I just know America can do better.”

According to the AP, Hirshland said in her letter that she respected the athletes’ perspectives and intended to “engage on a global discussion on these matters” with the IOC.

“However,” she wrote, “we can’t ignore the rules or the reasons they exist.”

Read more from The Post:

Jay-Z has ‘moved past kneeling.’ Some NFL players have a problem with that.

Under fire, Nike expands protections for pregnant athletes

Sue Bird and Diana Taurasi weren’t satisfied with USA Basketball’s schedule. So they changed it.