a = list(map(int,input().split())) s = sum(a)/len(a) print('{:.2f}'.format(s)) m = [str(x) for x in a if x>s] print(' '.join(m))