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