gets $<.sort_by{|s|eval'-%f/%f'%s.split}.map{|s|puts s}