What country in south America has the longest border with the pacific ocean?

Chile has the longest border with the pacific ocean.