n = gets.to_i ar = gets.split.map(&:to_i) hk = Array.new(100,0) ar.each{|e| hk[e-1] += 1 } def kado?(a,b,c);a!=b&&b!=c&&c!=a&&((ac)||(a>b&&b