#include<iostream>
#include<string>
#include<math.h>
using namespace std;
struct Opponent//敌人类型
{
int x;
int y;
int hp;
int distance;
}opponent[5];
int main()
{
int X, Y;//我的位置
int x, y, hp;//敌人
double L, R;//钩长 伤害系数
while(cin >> X >> Y){//输入我的的位置
bool flag;
double distance[10005];
for (int i = 0;i < 5;i++) {//输入5个敌人位置
cin >> opponent[i].x >> opponent[i].y >> opponent[i].hp;
int x1 = X - opponent[i].x;
int y1 = Y - opponent[i].y;
opponent[i].distance = sqrt(x1 * x1 + y1 * y1);//距离我的距离
}
cin >> L >> R;//输入 钩长 ,伤害系数
for (int i = 0;i < 5;i++) {
double harm = L * R;//打出伤害
if ( L > opponent[i].distance && harm >= opponent[i].hp) {//勾到 bing'qie
for(int j=0;j<5;j++){
if( i!=j && (opponent[i].x-X)*(opponent[j].y-Y)==(opponent[j].x-X)*(opponent[i].y-Y)
&& opponent[j].distance<opponent[i].distance
&& opponent[j].distance*R <opponent[j].hp ){
flag = false;
}
else{
flag = true;
}
}
}
}
if (flag) {
cout << "Yes";
}
else
{
cout << "No";
}
}
return 0;
}