1name = input("Enter file:")
2if len(name) < 1 : name = "mbox-short.txt"
3handle = open(name)
4count = 0
5for i in handle:
6 if i.startswith("From "):
7 a = i.split()
8 b = a[1]
9 if b.startswith("cwen"):
10 count+= 1
11 if count == 5:
12 print(b,count)