n = int(input("Enter the number of stones: ")) S = input("Enter the current state of planks: ") T = input("Enter the original blueprint of ships: ") replacements = sum(1 for i in range(n) if S[i] != T[i]) print(replacements)