Since the spheres are placed on all integer coordinates \((l, m, n)\), they form a cubic lattice.
The distance between any two sphere centers is simply the Euclidean distance between their coordinates.
For a given sphere at \( (0, 0, 0) \), the nearest neighbors are located at a unit distance along the axes:
\[
x = \text{distance to nearest sphere} = \sqrt{1^2 + 0^2 + 0^2} = 1
\]
The next nearest neighbors lie diagonally in the 2D planes, such as \( (1, 1, 0) \), \( (0, 1, 1) \), etc., and their distance is:
\[
y = \sqrt{1^2 + 1^2 + 0^2} = \sqrt{2}
\]
Thus, the required ratio is:
\[
\frac{y}{x} = \frac{\sqrt{2}}{1} = \sqrt{2}
\]