Import account/contact when 2 accounts have the same name ?

Import account/contact when 2 accounts have the same name ?

Hello,

I try to import Accounts, and Contacts. 
But I have a problem when 2 accounts have the same account name (but different addresses).
The contact is always linked to the first account (with the right account name) in the list.

The problem is that I have different account ID's but the contact import seems to match only with the account name.

What is the solution?

Thanks for your answer. I'm stuck.

Solène