puts [gets,gets,gets].sort[1]