xs=readlines.map(&:to_i)[1..-1] (1..100).each{|m| t=true xs.each{|x| n = x*m/100 t=false if 100*n!=x*m } if t p m exit 0 end }