Russia finished on top of the medal table as the 22nd Winter Olympics came to a close in Sochi on Sunday after 17 days of competition.
International Olympic Committee (IOC) president Thomas Bach officially closed the Games during an extravagant 130-minute ceremony.
South Korea was given the Olympic flag as Pyeongchang hosts the 2018 Games.
Russian President Vladimir Putin celebrated a rush of medals in Sochi with a triumphant closing ceremony on the shores of the Black Sea.
After spending $50 billion to build a mountain ski resort and a cluster of shimmering sports venues from scratch, failure was not an option for the omnipresent Russian president.
At the opening ceremony a fortnight ago, all the talk was of security fears, culls of stray dogs, last-minute glitches and a giant hydraulic snowflake that failed to open.
But by the closing ceremony – which featured ballet from the Bolshoi, music by Rachmaninov and tributes to Tolstoy and Kandinsky plus the usual protocol – the atmosphere was one of pure celebration swathed in the colors of the Russian flag.
IOC President Thomas Bach declared the most expensive Games in history “a real special experience”.
He also personally thanked Vladimir Putin for his contribution to the “extraordinary success of these Winter Games”.
The opening ceremony had been a pleasingly offbeat romp through Russian art and culture. With its marching bands and 1,000-strong children’s choir singing the national anthem, this was more of a traditional show of strength.
For the Russians who wildly cheered a clean sweep of the podium in the 30 mile cross country skiing and a second gold in the bobsleigh for Alexander Zubkov on the final day of competition, a surge of sporting success helped it go with a swing.
The Russian ice hockey team had limped out of the competition to Finland at the quarter-final stage, leaving Canada to triumph over Sweden in Sunday’s final.