Russia’s harrowing history has bred a dark sense of humor in its citizens.

CIA Director John Ratcliffe’s hosts therefore surely appreciated the irony when he flew into Moscow this week, reportedly to tell the Russians that they are losing their debacle of a war in Ukraine.

Russian spy chiefs might have pointed out that President Donald Trump, like President Vladimir Putin, is also embroiled in a war — in Iran — that he can’t win and can’t end.

Two leaders in two different conflicts face a similar dilemma: They can’t achieve their war ends. But they can’t walk away and save face.

Each launched hostilities after apparently underestimating the tenacity and capacity of adversaries whose militaries were dwarfed by the conventional power and matériel of US and Russian forces.