Let b be the largest number such that a rectangle with sides of lengths 1 and b will fit into a unit square so that the sides of the rectangle are not parallel to the sides of the square. Find b.