It was a great deal for Stalin. He increased the territory of the USSR and all of Eastern Europe became communist. All it cost him was millions of lives. He didn’t give a damn about the millions of civilians and soldiers who were killed by the Nazis.