import scala.util.control.Breaks.{ break, breakable }

object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val lines = scala.collection.mutable.MutableList.empty[String]
    lazy val all = lines.foldLeft("")((a, b) => a + b)

    breakable {
      while (true) {
        val str = sc.next().map(_.toLower)
        lines += str
        if (str.contains(".")) break
      }
    }

    'a' to 'z' foreach { c =>
      println(s"${c} : " + all.count(_ == c))
    }
  }
}