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