<P> Ukraine borders with seven countries : Poland , Slovakia , Hungary , Romania , Moldova , Russia , and Belarus . The total length of the Ukrainian border is 6,992.98 km ( 4,345.24 mi ) . In reality Ukraine does not have real established and ratified borders with Russia , Belarus , and Moldova ( republics of the former Soviet Union ) . The borders with other countries were inherited from the Soviet border patrol service which was recreated into the Ukrainian after the fall of the Soviet Union . </P>
what country shares borders with both belarus and romania
Ukraine