i = input print(sum(x!=y) for x,y in zip(i(),i()))