What continents touched the pacific and Atlantic ocean?

Antarctica, North and South America touch the Atlantic and Pacific Oceans.