def isKey(plainDict, key):
try:
plainDict[key]
return True
except KeyError:
return False
def main():
wordsAmount = {}
with open('input.txt') as f:
lines = [lines.split(" ") for lines in f.read().strip().split("\n")]
for line in lines:
for word in line:
if not isKey(wordsAmount, word):
wordsAmount.update({word : 1})
else:
wordsAmount[word] += 1
print(max(wordsAmount))
if __name__ == '__main__':
main()