Triangle and point#666

Triangle and point

1 second
128 megabytes
Very easy

Determine whether the given point lies inside the given triangle.

Input

The coordinates of the vertices of the triangle are given in the first lines (each line contains integers, separated by a space). The fourth line contains the coordinates of the point in the same format.

All numbers are integers and their absolute values do not exceed . The vertices of the triangle do not lie on a single straight line.

Output

Print the word In if the point lies strictly inside the triangle, On if the point lies on the boundary of the triangle (on a vertex or an edge), or Out if the point lies outside the triangle.

Examples

Example 1

Loading
Loading