Russia's ban from the Olympic movement was lifted on Wednesday despite two failed doping tests by its athletes at the Pyeongchang Winter Olympics.

The decision by the International Olympic Committee appears to be an attempt to draw a line under the state-concocted doping scandal that tarnished the 2014 Olympics in Sochi.

The IOC allowed more than 160 athletes it determined were clean to compete in South Korea as Olympic Athletes from Russia at the Winter Games earlier this month, with a prohibition on the national anthem or flag in venues.

President Vladimir Putin hailed the move during a Kremlin award ceremony for Olympic athletes, saying "we must turn this page."

"We must draw relevant conclusions for ourselves, but I hope that international organizations also will eventually understand that sports must be kept away from problems unrelated to it," he added.

Russia's hopes of marching under its flag at Sunday's closing ceremony in South Korea were stymied by the two positive tests for banned substances, including a curler who had to forfeit his bronze medal. But the IOC said Wednesday that all remaining test results were negative, clearing the path for Russia's return to the Olympic fold.

"Therefore, as stated in the executive board decision of 25th February, the suspension of the Russian Olympic Committee is automatically lifted with immediate effect," the IOC said in a statement.

Russian athletes won two gold medals in Pyeongchang — in figure skating and ice hockey — along with six silver medals and nine bronze.

ROC thanks athletes, fans

"I would like to thank our athletes who were able to perform well even despite the provocations," Russian Olympic Committee president Alexander Zhukov said in quotes carried by the TASS news agency. "I thank the fans who did not cross the line and what could result in sanctions. Today's IOC's decision is very important for us. The ROC is an absolutely full-fledged member of the Olympic family."

Russia also complied with its financial sanctions last week by paying $15 million to pay for the IOC's two investigations into the scheme and toward future anti-doping work.

Vitaly Smirnov, head of an anti-doping commission set up by Russian President Vladimir Putin, acknowledged on Wednesday that "we have a long way to go to get rid of the mistakes, which we made in the past."

But Russia continues to deny there was state involvement in the plot, which included urine samples in supposedly tamper-proof bottles at the 2014 Olympics being swapped out for clean samples through a "mouse hole" in the wall at a laboratory in Sochi.

The IOC decision to reinstate Russia has no bearing on the International Paralympic Committee's earlier ruling to maintain the country's ban. The only Russians at the March 9-18 Pyeongchang Games will be known as Neutral Paralympic Athletes, mirroring the IOC's compromise.