Problem: Dima is living in a dormitory, as well as some cockroaches.

At the moment 0 Dima saw a cockroach running on a table and decided to kill it. Dima needs exactly T seconds for aiming, and after that he will precisely strike the cockroach and finish it.

To survive the cockroach has to run into a shadow, cast by round plates standing on the table, in T seconds. Shadow casted by any of the plates has the shape of a circle. Shadow circles may intersect, nest or overlap arbitrarily.

The cockroach uses the following strategy: first he equiprobably picks a direction to run towards and then runs towards it with the constant speed v. If at some moment t ≤ T it reaches any shadow circle, it immediately stops in the shadow and thus will stay alive. Otherwise the cockroach is killed by the Dima's precise strike. Consider that the Dima's precise strike is instant.

Determine the probability of that the cockroach will stay alive.

Input

In the first line of the input the four integers x0, y0, v, T (|x0|, |y0| ≤ 109, 0 ≤ v, T ≤ 109) are given — the cockroach initial position on the table in the Cartesian system at the moment 0, the cockroach's constant speed and the time in seconds Dima needs for aiming respectively.

In the next line the only number n (1 ≤ n ≤ 100 000) is given — the number of shadow circles casted by plates.

In the next n lines shadow circle description is given: the ith of them consists of three integers xi, yi, ri (|xi|, |yi| ≤ 109, 0 ≤ r ≤ 109) — the ith shadow circle on-table position in the Cartesian system and its radius respectively.

Consider that the table is big enough for the cockroach not to run to the table edges and avoid Dima's precise strike.

Output

Print the only real number p — the probability of that the cockroach will stay alive.

Your answer will be considered correct if its absolute or relative error does not exceed 10 - 4.

Examples

Input

0 0 1 1
3
1 1 1
-1 -1 1
-2 2 1


Output

0.50000000000

Input

0 0 1 0
1
1 0 1


Output

1.00000000000

Note

The picture for the first sample is given below. 

<image>

Red color stands for points which being chosen as the cockroach's running direction will cause him being killed, green color for those standing for survival directions. Please note that despite containing a circle centered in ( - 2, 2) a part of zone is colored red because the cockroach is not able to reach it in one second.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int t = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') f = (ch == '-') ? -1 : f, ch = getchar();
  while (ch >= '0' && ch <= '9') t = t * 10 + ch - '0', ch = getchar();
  return t * f;
}
struct PP {
  double x, y, tag;
  PP() {}
  PP(double a, double b) { x = a, y = b, tag = atan2(y, x); }
  double len() { return sqrt(x * x + y * y); }
  void prt() { printf("%lf %lf\n", x, y); }
  void in() { scanf("%lf%lf", &x, &y), tag = atan2(y, x); }
  friend PP operator+(PP a, PP b) { return PP(a.x + b.x, a.y + b.y); }
  friend PP operator-(PP a, PP b) { return PP(a.x - b.x, a.y - b.y); }
  friend void operator-=(PP &a, PP b) { a = a - b; }
  friend void operator+=(PP &a, PP b) { a = a + b; }
};
struct cir {
  PP o;
  double r;
} c[101010];
bool getinter(cir P, cir Q, PP &c1, PP &c2) {
  long double r0 = P.r, r1 = Q.r, x0 = P.o.x, y0 = P.o.y, x1 = Q.o.x,
              y1 = Q.o.y;
  long double A = 2 * (x0 - x1), B = 2 * (y0 - y1),
              R = r1 * r1 - r0 * r0 + x0 * x0 + y0 * y0 - x1 * x1 - y1 * y1;
  long double a = B * B / (A * A) + 1,
              b = 2 * (B * x0 / A - B * R / (A * A) - y0),
              c = R * R / (A * A) - 2 * x0 * R / A + x0 * x0 + y0 * y0 -
                  r0 * r0;
  long double det = b * b - 4 * a * c;
  det = sqrt(det);
  y0 = (-b + det) / (a * 2.0), y1 = (-b - det) / (a * 2.0);
  x0 = (R - B * y0) / A, x1 = (R - B * y1) / A;
  c1 = PP(x0, y0);
  c2 = PP(x1, y1);
  return 1;
}
struct alg {
  double x;
  int p;
  friend bool operator<(alg a, alg b) { return a.x < b.x; }
} tmp[101010];
int n, cnt = 0;
void add(double a, double b) {
  if (a > acos(-1.0)) a -= 2 * acos(-1.0);
  if (b > acos(-1.0)) b -= 2 * acos(-1.0);
  if (a < -acos(-1.0)) a += 2 * acos(-1.0);
  if (b < -acos(-1.0)) b += 2 * acos(-1.0);
  if (a > b) swap(a, b);
  if (b - a >= acos(-1.0)) {
    add(-acos(-1.0), a);
    add(b, acos(-1.0));
    return;
  }
  tmp[++cnt] = (alg){a, 1};
  tmp[++cnt] = (alg){b, -1};
}
int main() {
  cir rt;
  rt.o.in();
  double x, y;
  scanf("%lf%lf", &x, &y);
  rt.r = x * y;
  PP v0 = PP(0, 0) - rt.o;
  rt.o += v0;
  n = read();
  for (register int i = 1; i <= n; i++) {
    c[i].o.in(), c[i].o += v0, scanf("%lf", &c[i].r);
    double dis = c[i].o.len();
    if (dis <= c[i].r) {
      printf("%.10lf", 1.0);
      return 0;
    }
    double len = sqrt(dis * dis - c[i].r * c[i].r);
    if (len <= rt.r) {
      double t = asin(c[i].r / dis);
      add(c[i].o.tag + t, c[i].o.tag - t);
      continue;
    }
    if (dis < c[i].r + rt.r && dis > fabs(rt.r - c[i].r)) {
      PP c1, c2;
      getinter(rt, c[i], c1, c2);
      add(c1.tag, c2.tag);
    }
  }
  sort(tmp + 1, tmp + cnt + 1);
  double ans = 0;
  int cc = 0;
  for (register int i = 1; i <= cnt; i++) {
    if (cc > 0) ans += tmp[i].x - tmp[i - 1].x;
    cc += tmp[i].p;
  }
  ans /= 2 * acos(-1.0);
  printf("%.10lf", ans);
  return 0;
}