3. (43rd American High School Mathematics Examination) Let $S$ be a subset of the set $\{1,2, \cdots, 50\}$ with the following property: the sum of any two distinct elements of $S$ cannot be divisible by 7. What is the maximum number of elements that $S$ can have?