for(U=[],R=[];Q=readline();R.push(T))for(F in T=Q.split('`'))(L=T[F].length)