You invented a hat that gives you pain.<br/>1. A pain-giving-out hat.<br/>2. A giving-out-pain hat.<br/><br/>I probably think that 'giving out' is not the right choice word, so can you check in terms of grammar.