input() C = '' for i, j in zip(input().split(), input().split()): C += [' ', '1'][i != j] print(len(C.split()))