a = input().split() a = [int(x) for x in a] res = (a[0]+a[1] + a[2]+a[3]+a[4]+a[5]+a[6]) //7 print(res)