"!/usr/bin/env ruby # -*- coding: utf-8 -*- kidamono = ["りんご","みかん","バナナ",] puts "7" x = gets.to_i puts kudamono(x) end