gets puts ($<.map(&:to_i).map do |i| s = "" s += "iki" if i % 8 == 0 s += "sugi" if i % 10 == 0 s = i / 3 if s.empty? s end)