
x    = input()
y    = input()
z    = input()

r = frequencia(x,y,z)

print(r)

