Output #1
10 1 1 0 0 1 0 1 0 1 1
8 1 1 0 1 0 0 1 1
11 1 0 0 0 1 1 0 1 0 1 0
It can be verified that $S_1=(1,1,0,0,1,0,1,0,1,1),S_2=(1,1,0,1,0,0,1,1),S_3=(1,0,0,0,1,1,0,1,0,1,0)$ satisfies the conditions as follows:
* The lengths of $S_1,S_2,S_3$ are $10,8,11$, respectively, all of which are between $1$ and $1000$, inclusive.
* The longest sequences that are both a contiguous subsequence of $S_1$ and a contiguous subsequence of $S_2$ are $(1,0,0,1)$ and $(1,0,1,0)$, with length $X=4$.
* The longest sequences that are both a contiguous subsequence of $S_1$ and a contiguous subsequence of $S_3$ are $(1,0,1,0,1)$ and $(0,1,0,1,0)$, with length $Y=5$.
* The longest sequence that is both a contiguous subsequence of $S_2$ and a contiguous subsequence of $S_3$ is $(1,1,0,1,0)$, with length $Z=5$.
* $\max(\max(S_1),\max(S_2),\max(S_3))=1$, and it can be shown that it is impossible to satisfy the above four conditions with $\max(\max(S_1),\max(S_2),\max(S_3))=0$, so this is minimal.