p,q,r=sorted(list(map(int,input().split()))) print(max((q+r)/(p+q+r)),(r)/(p+q+r))