# coding: utf-8

# Your code here!





n = int(eval(input()))



al = list(eval(input()))

bl = list(eval(input()))

cl = list(eval(input()))



ans = 0

for i,j,k in zip(al,bl,cl):

    a = [i,j,k]

    if max(a.count(i), a.count(j), a.count(k)) == 1:

        ans += 2

    elif max(a.count(i), a.count(j), a.count(k)) == 2:

        ans += 1

    else:

        pass

    

print(ans)
n = int(eval(input()))

al = list(eval(input()))

bl = list(eval(input()))

cl = list(eval(input()))



ans = 0

for a, b, c in zip(al, bl, cl):

    ans += len(set([a, b, c])) - 1

print(ans)
# coding: utf-8
# Your code here!
n = int(eval(input()))
al = list(eval(input()))
bl = list(eval(input()))
cl = list(eval(input()))
ans = 0
for i, j, k in zip(al, bl, cl):
    a = [i, j, k]
    if max(a.count(i), a.count(j), a.count(k)) == 1:
        ans += 2
    elif max(a.count(i), a.count(j), a.count(k)) == 2:
        ans += 1
    else:
        pass
print(ans)

n = int(eval(input()))
al = list(eval(input()))
bl = list(eval(input()))
cl = list(eval(input()))
ans = 0
for a, b, c in zip(al, bl, cl):
    ans += len(set([a, b, c])) - 1
print(ans)

-# coding: utf-8 -# Your code here! -for i, j, k in zip(al, bl, cl): -    a = [i, j, k] -    if max(a.count(i), a.count(j), a.count(k)) == 1: -        ans += 2 -    elif max(a.count(i), a.count(j), a.count(k)) == 2: -        ans += 1 -    else: -        pass +for a, b, c in zip(al, bl, cl): +    ans += len(set([a, b, c])) - 1