i = gets.to_i weights = Array.new(i) { gets.to_i }.map do |weight| pp weight if weight % 20 == 0 'ikisugi' elsif weight % 10 == 0 'sugi' elsif weight % 8 == 0 'iki' else weight / 3 end end puts weights