#!/usr/bin/env ruby # -*- coding: utf-8 -*- ume = ["大江","松浦","倉田","畠山"] puts "好きな数字を入れて名字を取り出そう" x = gets.to_i puts ume[x]