Triangular garden
题号:NC15804
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

It’s universally acknowledged that there’re innumerable trees in the campus of HUST.

Coach Yin possesses a triangular garden below his office. He wants to decorate his garden with a beautiful tree. He believes that a tree planted in place will bring good luck. A tree in place means that this tree is located at the orthocenter, centroid, incenter or circumcenter of the triangle.


Orthocenter is the intersection of the three(possibly extended) altitudes. Centroid is the intersection of the three midian line. Incenter is the intersection of three inner angular bisector. Circumcenter is the intersection of three perpendicular bisector.


It's guaranteed that the given points can form a triangle.

输入描述:

There areexactly 4 lines in each test sample.

The first to the third line consists of two integers xi and yi, denoting coordinatesof three points in plate.

The last line also consists of two integers xo and yo, denotingcoordinates the tree’s position.

The absolute valueof all coordinates are no larger than 106.

输出描述:

Print “Yes” if this tree will bring good luck, or “No” if not. Note that a tree will bring good luck if and only if it coincides with any of the four center with no error.
示例1

输入

复制
0 1
4 2
5 0
3 1

输出

复制
Yes
示例2

输入

复制
10 5
3 29
3 5
6 8

输出

复制
Yes
示例3

输入

复制
20 18
5 6
1 4
0 0

输出

复制
No