name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
lst = list()
for line in handle :
line = line.rstrip()
if not line.startswith("From:") : continue
words = line.split()
# print(words[1])
lst.append(words[1])
# print(lst)
di = dict()
for word in lst :
di[word] = di.get(word, 0) + 1
maxval = -1
maxkey = None
for key, val in di.items() :
if val > maxval :
maxval = val
maxkey = key
print(maxkey, maxval)