Borrowed from French hamac.
гама́к • (gamák) m inan (genitive гамака́, nominative plural гамаки́, genitive plural гамако́в)