At a party, 6 gentlemen leave their hats in a wardrobe. In how many ways can their hats be returned to them such that no gentleman receives his own hat?

a) 120
b) 360
c) 265
d) 720