Hair + Hat. How do I do it?

I’ve just started making hair for my character and she have a hat on her head. How do I do the hat/hair interation so the hair does not go through the hat?

I’m pasting the blend file for any needs.

Sorry for bad english.
Thanks in advance.