x = list(map(int, input().split())) i = sum(x) / len(x) print("{:.2f}".format(i)) list1 = [] for j in x: if j > i: list1.append(j) print(*list1)