Find all the positive integers n for which there exists a Family F of three-element subsets of S={1,2,...,n} satisfying
(i) for any two different elements a,b∈S there exists exactly one A∈F containing both a and b;(ii) if a,b,c,x,y,z are elements of S such that {a,b,x},{a,c,y},{b,c,z}∈F, then {x,y,z}∈F.