AT_past202309_m 線分の交差判定

Description

There are two line segments in the $ xy $ -plane. The endpoints of the $ i $ -th line segment are at coordinates $ (a_i,b_i) $ and $ (c_i,d_i) $ . Determine if these two line segments intersect.

Input Format

The input is given from Standard Input in the following format: > $ a_1 $ $ b_1 $ $ c_1 $ $ d_1 $ $ a_2 $ $ b_2 $ $ c_2 $ $ d_2 $

Output Format

Print `Yes` if the two line segments intersect, and `No` otherwise.

Explanation/Hint

### Sample Explanation 1 As shown below, the two line segments intersect at coordinates $ (5,5) $ . ![image](https://cdn.luogu.com.cn/upload/vjudge_pic/AT_past202309_m/731edf6d9dea1d13273c0130ae7ced06d3d2c29f1c052e0820a89203c2e9238e.png) ### Sample Explanation 2 ![image](https://cdn.luogu.com.cn/upload/vjudge_pic/AT_past202309_m/9b8d17b1c35a9123516fac17e11bb5fc932b0c272f6c1a32f6d82877a5f21781.png) ### Sample Explanation 3 ![image](https://cdn.luogu.com.cn/upload/vjudge_pic/AT_past202309_m/d4e736911d8ca27e644fc8efe097cf494510eb2bc47dcde6db707575709253ba.png) ### Constraints - $ -1000 \leq a_i,b_i,c_i,d_i \leq 1000 $ - $ (a_i,b_i)\neq (c_i,d_i) $ - All input values are integers.