import sys
for i in range(int(input())):
    l = [[0] * 26, [0] * 26]
    for j in range(2):
        for k in sys.stdin.readline().strip():
            l[j][ord(k) - 97] += 1
    print('Case #{}: {}'.format(i + 1, sum([abs(l[0][i] - l[1][i]) for i in
        range(26)])))

e43cd377cc0a9a6572ae8356fbf0b6158f8c5d26
<mask token>

<mask token>
for i in range(int(input())):
    l = [[0] * 26, [0] * 26]
    for j in range(2):
        for k in sys.stdin.readline().strip():
            l[j][ord(k) - 97] += 1
    print('Case #{}: {}'.format(i + 1, sum([abs(l[0][i] - l[1][i]) for i in
        range(26)])))

import sys
for i in range(int(input())):
    l = [[0] * 26, [0] * 26]
    for j in range(2):
        for k in sys.stdin.readline().strip():
            l[j][ord(k) - 97] += 1
    print('Case #{}: {}'.format(i + 1, sum([abs(l[0][i] - l[1][i]) for i in
        range(26)])))
