s = [] a ='*' while a != "" a = gets.to_s if a != "" if s.include?(a) puts("Раді знову вас бачити!") else if a.length > 0 puts("Дякуємо, що вибрали саме нас!") s.push(a) end end end end