If the angles of a triangle are in the ratio 4 :1 :1 , then the ratio of the longest side to the perimeter is