#!/bin/python3
with open('1.txt') as txt, open('2.txt','w') as out:
s=txt.read().strip()
for p in range(s.count('\n')+1):
s=txt.readline().strip().split(';')
out.write(str((float(float(s[1])+float(s[2])+float(s[3]))/3)))
out.write('\n')
with open('2.txt','r') as out:
g=out.read().strip()
print(g)