What forms Maine's borders?

Canada, New Hampshire, and the Atlantic Ocean form Maines borders.