The M.A.D wizard has appeared! Thankfully he is on your side. Tell him the amount of values, the values themselves, and the wizard will find the MAD for you!
*Warning* Do not tell him any letters, or he will be mad at you!