class Main {
  def main(args: Array[String]): Unit = {
    val out = io.StdIn.readLine.map {
      _.toString count {
          Set('A', 'C', 'G', 'T').contains(_)
        }
    }
    println(out.head)
  }
}