Moscow from Ukraine border: ~520 km
Moscow from Latvian border: ~620 km
Not to mention full control of a Black Sea (and therefore entrance to Mediterranean) coastline with multiple ports. As well as a major agricultural products. As well as a huge transit country for Russian energy pipelines.