def ascan; gets.split.map(&:to_i);end h,n = ascan l = [] n.times{ l << gets.to_i } p l.index(h)+1