a=list(map(int,input().split())) res=sum(a) ave=res/5 print("{:.2f}".format(ave)) for i in a: if i>ave: print(i,end=" ")