a=input() b="CCCCCCCCCC" c="" d=0 if len(a)==len(b): for i in range(len(b)): if a[i]==b[i]: c=c+b[i] d=d+10 else: c=c+"X" print(d,c)