6-101. Let $x, y$ be positive numbers, and $S$ be the smallest number among $x, y+\frac{1}{x}, \frac{1}{y}$. Find the possible maximum value of $S$, and the values of $x, y$ that achieve this maximum value.