1. Let the set $X=\{1,2, \cdots, 2017\}$, and the set $S=\{(x, y, z) \mid x, y, z \in X$, and exactly one of the three conditions $x<y<z, y<z<x$, $z<x<y$ holds $\}$. If $(x, y, z) \in S$ and $(z, w, x) \in S$, then which of the following options is correct?
A. $(y, z, w) \in S$ and $(x, y, w) \notin S$
B. $(y, z, w) \in S$ and $(x, y, w) \in S$
C. $(y, z, w) \notin S$ and $(x, y, w) \in S$
D. $(y, z, w) \notin S$ and $(x, y, w) \notin S$
According to the problem, $x<y<z<w$ or $y<z<w<x$ or $z<w<x<y$, so $(y, z, w) \in S$ and $(x, y, w) \in S$, hence the answer is $B$.