n = int(eval(input()))

a = eval(input())

b = eval(input())

c = eval(input())

p = 0



for i in range(n):

    if a[i] == b[i] == c[i]:

        pass

    else:

        if a[i] == b[i]:

            p += 1

        elif b[i] == c[i]:

            p += 1

        elif a[i] == c[i]:

            p += 1

        else:

            p += 2



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

a = list(eval(input()))

b = list(eval(input()))

c = list(eval(input()))

ans = 0

for i in range(n):

    l = [a[i],b[i],c[i]]

    l = list(set(l))

    if len(l) == 3:

        ans += 2

    elif len(l) == 2:

        ans += 1

    else:

        pass

print(ans)
n = int(eval(input()))
a = eval(input())
b = eval(input())
c = eval(input())
p = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        pass
    else:
        if a[i] == b[i]:
            p += 1
        elif b[i] == c[i]:
            p += 1
        elif a[i] == c[i]:
            p += 1
        else:
            p += 2
print(p)

n = int(eval(input()))
a = list(eval(input()))
b = list(eval(input()))
c = list(eval(input()))
ans = 0
for i in range(n):
    l = [a[i], b[i], c[i]]
    l = list(set(l))
    if len(l) == 3:
        ans += 2
    elif len(l) == 2:
        ans += 1
    else:
        pass
print(ans)

-a = eval(input()) -b = eval(input()) -c = eval(input()) -p = 0 +a = list(eval(input())) +b = list(eval(input())) +c = list(eval(input())) +ans = 0 -    if a[i] == b[i] == c[i]: +    l = [a[i], b[i], c[i]] +    l = list(set(l)) +    if len(l) == 3: +        ans += 2 +    elif len(l) == 2: +        ans += 1 +    else: -    else: -        if a[i] == b[i]: -            p += 1 -        elif b[i] == c[i]: -            p += 1 -        elif a[i] == c[i]: -            p += 1 -        else: -            p += 2 -print(p) +print(ans)