# 入力された値を文字列で受け取る input = gets.chomp puts Array.new(input.to_i, "Hello! You're new here, right? It's nice to meet you.").join("\n")