Trying to gain

I’m trying to gain fat (because I’m freakishly skinny and underweight...I have the doctors note.) Should I eat mostly carbs, healthy fats (fish, avocados, nuts, etc), unhealthy fat (processed foods, greasy foods, etc), or protein?