Bolivia and Paraguay to the north; Brazil to the northeast, Uruguay and the South Atlantic Ocean to the east; and the Drake Passage to the south; for an overall land border length of 9376 kilometers .