a = list(map(int, input().split())) ls =sum(a)/5 print("%.2f"%ls) for i in a: if i > ls: print(i, end=" ")