Acetazolamide (traded under the brand name Diamox) is the wonder drug that fights AMS, and the first treatment doctors give to somebody suffering from mountain sickness. Indeed, many travellers use it as a prophylactic, taking it during the trek up Kilimanjaro to prevent AMS.