    a=input()
    length=len(a)
    new_var=(length)/3
    new_string="SOS" * new_var
    u=zip(a,b)
    for i,j in u:
        if i==j:
        else: 
            count=count+1
    print(count)        
