# frozen_string_literal: true

sentence = readlines.map(&:chomp).join
counts = Array.new(26, 0)
sentence.chars.map(&:ord).each do |i|
  case i
  when 65..90
    counts[i - 65] += 1
  when 97..122
    counts[i - 97] += 1
  end
end
26.times do |i|
  puts "#{(i + 97).chr} : #{counts[i]}"
end

