name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
count=dict()
hour=list()
for line in handle:
    if line.startswith('From '):
        piece=line.split()
        temp=piece[5]
        hour.append(temp)
xi=list()        
for i in hour:
    x=i.split(':')
    xi.append(x[0])
    
        
    
for key in xi:
    count[key]=count.get(key,0) + 1
    
lst=list()
for k,v in count.items():
    tlst=(k, v)
    lst.append(tlst)
    
solved=sorted(lst)
for k,v in solved:
    print(k, v)
    
83dc1d09e728c0a29d3f8be1e568eb6872907620
<mask token>

<mask token>
if len(name) < 1:
    name = 'mbox-short.txt'
<mask token>
for line in handle:
    if line.startswith('From '):
        piece = line.split()
        temp = piece[5]
        hour.append(temp)
<mask token>
for i in hour:
    x = i.split(':')
    xi.append(x[0])
for key in xi:
    count[key] = count.get(key, 0) + 1
<mask token>
for k, v in count.items():
    tlst = k, v
    lst.append(tlst)
<mask token>
for k, v in solved:
    print(k, v)

name = input('Enter file:')
if len(name) < 1:
    name = 'mbox-short.txt'
handle = open(name)
count = dict()
hour = list()
for line in handle:
    if line.startswith('From '):
        piece = line.split()
        temp = piece[5]
        hour.append(temp)
xi = list()
for i in hour:
    x = i.split(':')
    xi.append(x[0])
for key in xi:
    count[key] = count.get(key, 0) + 1
lst = list()
for k, v in count.items():
    tlst = k, v
    lst.append(tlst)
solved = sorted(lst)
for k, v in solved:
    print(k, v)

name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
count=dict()
hour=list()
for line in handle:
    if line.startswith('From '):
        piece=line.split()
        temp=piece[5]
        hour.append(temp)
xi=list()        
for i in hour:
    x=i.split(':')
    xi.append(x[0])
    
        
    
for key in xi:
    count[key]=count.get(key,0) + 1
    
lst=list()
for k,v in count.items():
    tlst=(k, v)
    lst.append(tlst)
    
solved=sorted(lst)
for k,v in solved:
    print(k, v)
    