Russian Prime Minister Dmitry Medvedev had a grim message on Twitter for President Obama, saying that he is leaving office with Washington and Moscow at each other's throats.

It is regrettable that the Obama administration, which started out by restoring our ties, is ending its term in an anti-Russia agony. RIP — Dmitry Medvedev (@MedvedevRussiaE) December 30, 2016

Medvedev served as Russia’s president until 2012, before stepping aside so current leader Vladimir Putin could begin his third term.

The Obama administration on Thursday announced an array of retaliatory measures against Russia in response to a hacking campaign aimed at interfering in the 2016 U.S. presidential election. The measures include a slate of economic sanctions, diplomatic censure and public “naming and shaming.”

ADVERTISEMENT

Obama also announced that the State Department would expel 35 Russian intelligence operatives and shutter two Russian compounds, in Maryland and New York, used by Russia for intelligence purposes.

“These actions are not the sum total of our response to Russia’s aggressive activities,” he said in a statement. "We will continue to take a variety of actions at a time and place of our choosing, some of which will not be publicized.”

Obama’s remarks were punctuated by a joint report from the FBI and the Department of Homeland Security released Thursday detailing Russia’s election interference. The assessment explains how federal investigators linked the Russian government to hacks of Democratic Party organizations and other individuals.

Obama has faced pressure to provide evidence of the intrusion as President-elect Donald Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE has dismissed reports that Russia was directly involved in the hacks.

Despite a call from some Russian officials to respond in kind to the new sanctions, Putin declined on Friday to expel any U.S. diplomats, betting on a better relationship when Trump takes office.