Two analogies that relate objects to the associated rooms is given in the form "A : B. C : ?". "A : B" relates object A to room B. Your task is to replace the question mark (?) with the appropriate room for the given object C, following the "A : B" relation.

Ex Input:
closet : bedroom. table : ?

Ex Output:
kitchen


Ex Input:
sink : kitchen. closet : ?

Ex Output:
hallway


Ex Input:
bookshelf : hallway. bed : ?

Ex Output:

bedroom