#!/usr/bin/env ruby # -*- coding: utf-8 -*- botann = ["しげたか", "こころ", "こうしゅん", "たかみね"] puts "好きな数字を入れて、値を取り出そう" x = gets.to_i puts botann[x]