Олимпиадный тренинг

Задача 27076. Does a point belong to a corner


Задача

Темы:
Given an angle AOB (O is the vertex of the angle, A and B are points on the sides) and a point P. Determine if point P belongs to angle AOB (including its sides: rays OA and OB).
 
Input
The program receives as input the coordinates of points A, O, B, P.  All coordinates are integers and do not exceed 100 in absolute value. Points A, O, B do not lie on the same line.
 
Output
The program should output the word YES or NO.

Enter Output
0 1
0 0
10
1 1
YES