c=[0]*15 s=input() while s:x,y,*s=s;c[ord(y)-97]|=1<