object Main extends App {
	val N = scala.io.StdIn.readLine.toArray

	def con(x: Int): List[(Int,Int)] = {
		var a = List[(Int,Int)]()
		for(i<-0 until x){
			for(j<-(i+1) until x){
				a = (i,j)::a
			}
		}

		return a
	}

	val test = con(N.size)
	var count = 1

	for(i <- test){
		if(N(i._1) != N(i._2)) count = count + 1
	}

	println(count )	

}
