DON'T PANIC!

Time Limit : 8 sec, Memory Limit : 65536 KB

Problem G: DON'T PANIC!

Arthur is an innocent man who used to live on the Earth. He had lived a really commonplace life, until the day when the Earth was destroyed by aliens, who were not evil invaders but just contractors ordered to build a hyperspace bypass. In the moment when the demolition beams were shot at the Earth by them, Arthur was in front of his house and almost about to be decomposed into hydrogen, oxygen, carbon and some other atoms. However, fortunately, he survived; one of his friend Ford, who was actually an alien and had come to the Earth in the course of his trip around the universe, took him up to a spaceship just before the beam reached him.

Arthur and Ford successfully escaped, but it was only the beginning of their hardships. Soon it turned out that actually the spaceship was the contractorfs one itself, and as it can be easily imagined, they disliked humans. Therefore as soon as they found Arthur and Ford, they stopped at the nearest unexplored planet and dropped the two pity men out of the spaceship from 10 miles up above the land surface.

Again theyfre in a pinch! Fortunately our hero Ford has a special item that let them safely land to the planet, known as a parachute, so they donft worry about that. The problem is that they are just falling freely and canft change the landing point, which may be on ground or sea. They want to know if they can land peacefully or need some swimming to the nearest coast.

Fordfs universal GPS gadget displays their expected position of landing by latitude/longitude. Also he has a guidebook that describes almost all the planets in the universe. According to it, the planet has the only one continent and hence only one sea. It has a description of the shape of the continent but, unfortunately, not in a intuitive way of graphical maps. So your task is to make a program to decide whether the point is on the land or not.

Input

N
P0 T0
.
.
.
PN TN

The first line of the input contains an integer N (3 ≤ N ≤ 1000). The second line contains two integers P0, T0 which represents the latitude and the longitude of the point where Arthur and Ford are going to land. The following N lines describe the shape of the only continent on the planet. The k-th line contains two integers Pk and Tk, which represents the latitude and the longitude of a point Vk. The continent is described as a polygon with N vertices Vk on a sphere. The coastline of it is formed by cyclically connecting consecutive points with the shortest line.

(Pk, Tk) (k = 0, 1, ...., N) satisfies -90 ≤ Pk ≤ 90, -180 ≤ Tk ≤ 180. Positive latitude means north and negative means south. Positive longitude means east and negative means west. The border of the continent is given by counterclockwise order and you can assume there is always exactly one way to connect given two consecutive points by minimum distance, and the shape of the continent is not selfcrossing. The landing point will be never on the coastline.

Output

If Arthur and Ford are going to land on the continent, print gYesh. Otherwise gNoh.

Sample Input 1

4
0 0
10 10
10 -10
-10 -10
-10 10

Output for the Sample Input 1

Yes

Sample Input 2

4
89 0
0 0
0 90
0 180
0 -90

Output for the Sample Input 2

Yes

Sample Input 3

4
89 0
0 0
0 -90
0 180
0 90

Output for the Sample Input 3

No

Source: ACM-ICPC Japan Alumni Group Summer Camp 2010 , Day 4, Tokyo, Japan, 2010-09-20
http://acm-icpc.aitea.net/