3 1 3 4 2 5 6
Yes  As shown in the figure, chord $1$ (the line segment connecting points $1$ and $3$) and chord $2$ (the line segment connecting points $4$ and $2$) intersect, so print `Yes`.
3 6 1 4 3 2 5
No  As shown in the figure, there is no intersection between the chords, so print `No`.
4 2 4 3 7 8 6 5 1
Yes
{
"problem": {
"name": "Chords",
"description": {
"content": "There are $2N$ points placed at equal intervals on a circle, numbered $1$ to $2N$ in a clockwise direction starting from a certain point. There are also $N$ chords on the circle, with the $i$\\-th chor",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc338_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $2N$ points placed at equal intervals on a circle, numbered $1$ to $2N$ in a clockwise direction starting from a certain point.\nThere are also $N$ chords on the circle, with the $i$\\-th chor...",
"is_translate": false,
"language": "English"
}
]
}