Contact between multiple bodies

I am modeling an engine assembly. There are locations in the assembly where 3 parts are comming into contact. What is the best way to model contact in such a case. I am defining contact using contact pair but the problem is that one set of nodes is contained in multiple contacts. Please see the picture for detail. Could anyone please specify how could i define the master and slave surfaces so they dont cause problem.

Or is there some other technique to model in such a case.

The arrows represent contacting surfaces.