import List m@main=do s<-getLine;putStrLn$show(sum[1|x<-g s,xx++[a])s$tail s