A dreadful monster has been witnessed in a forest near the city of magic Sharia, and a group of valorous adventurers will hunt it down in few days before it hurts anyone. However, LaLa knows that the real reason those adventurers are willing to take the risk is to obtain the rare magic stone that the monster is known to produce in its intestines. LaLa would like to obtain the magic stone before they do, as it is known to be quite beautiful.
LaLa will first locate the monster with her magic. LaLa has placed a bunch of magic tools within the forest, each of which has some power associated with it.
Consider the circles centered at each magic tool with radius equal to its power. LaLa's magic will successfully locate the monster if and only if the convex hull of the circles contains the location of the monster.
Write a program that determines whether LaLa will be able to locate the monster.
The input is given in the following format:
N
x_0 y_0 r_0
x_1 y_1 r_1
⋮
x_N−1 y_N−1 r_N−1
where N is the number of magic tools placed in the forest, the i-th of which is located at (x_i,y_i) and has power r_i. Here, assume that the forest is a two-dimensional plane where the monster is located at (0,0).
The input satisfies the following constraints:
If LaLa's magic will successfully locate the monster, print a single string "Yes". Otherwise, print a single string "No". You may print each character in either case (lower or upper).
The following illustrates the configuration of the magic tools for the sample tests. The red curve denotes the boundary of the convex hull.
| First Sample | Second Sample | Third Sample |
|---|---|---|
![]() | ![]() | ![]() |