Let Q be the cube with the set of vertices . Let F be the set of all twelve lines containing the diagonals of the six faces of the cube Q. Let S be the set of all four lines containing the main diagonals of the cube Q; for instance, the line passing through the vertices (0,0,0) and (1,1,1) is in S. For lines and , let denote the shortest distance between them. Then the maximum value of , as varies over F and varies over S, is . Find the value of .
(6)
