Medications:
1. Ibuprofen 200 mg (if weight ≥20 kg; adjust if less) - Take 1 tablet by mouth at onset of headache, may repeat every 6–8 hours as needed - Maximum 3 doses in 24 hours, do not exceed 600 mg/day - Use as needed for migraine attacks
2. Famotidine 20 mg - Take 1 tablet by mouth twice daily - For 2 weeks

Instructions:
- Take ibuprofen with food or milk to reduce stomach upset.
- Take famotidine 30 minutes before breakfast and dinner.
- Keep a headache diary to track frequency, duration, and possible triggers.
- Drink plenty of water and maintain a regular sleep schedule.
- Avoid known migraine and acidity triggers (such as chocolate, cheese, spicy/fatty foods, caffeine, and carbonated drinks).
- Eat smaller, more frequent meals and avoid eating late at night.

Precautions:
- Do not use ibuprofen for more than 3 days per week to avoid medication overuse headache.
- Stop ibuprofen and seek medical attention if you experience stomach pain, vomiting blood, black stools, or any allergic reaction.
- If headaches become more frequent, severe, or are associated with vision changes, weakness, or persistent vomiting, seek medical attention promptly.
- Do not stop medications abruptly without consulting your healthcare provider.