lengths = map(lambda word: len(word), open("foo.txt","r").readline().split())