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;
long long xo, yo, v, T, r0, n;
long long xc[100005], yc[100005], rc[100005];
double angS[100005], angF[100005];
bool b[100005];
pair<pair<double, double>, pair<double, double> > tangent(double x, double y,
                                                          double r, double xp,
                                                          double yp) {
  if (r == 0) return {{0, 0}, {0, 0}};
  xp = (xp - x) / r;
  yp = (yp - y) / r;
  double a, b, c;
  a = (xp * xp + yp * yp);
  b = -2 * xp;
  c = 1 - yp * yp;
  double xRes1 = ((-1 * b) + sqrt(b * b - 4 * a * c)) / (2 * a);
  double yRes1 = (1 - xRes1 * xp) / yp;
  double xRes2 = ((-1 * b) - sqrt(b * b - 4 * a * c)) / (2 * a);
  double yRes2 = (1 - xRes2 * xp) / yp;
  if (yp == 0) {
    yRes1 = -1 * sqrt(1 - xRes1 * xRes1);
    yRes2 = sqrt(1 - xRes2 * xRes2);
  }
  xRes1 = r * xRes1 + x;
  yRes1 = r * yRes1 + y;
  xRes2 = r * xRes2 + x;
  yRes2 = r * yRes2 + y;
  return {{xRes1, yRes1}, {xRes2, yRes2}};
}
pair<double, double> calc2(double x, double y, double r, double &dist) {
  pair<pair<double, double>, pair<double, double> > pp =
      tangent(x, y, r, 0.0, 0.0);
  double ang1, ang2;
  ang1 = atan2(pp.first.second, pp.first.first);
  ang2 = atan2(pp.second.second, pp.second.first);
  if (ang1 < 0) ang1 += 2 * 3.14159265358979323846;
  if (ang2 < 0) ang2 += 2 * 3.14159265358979323846;
  if (ang1 > ang2) swap(ang1, ang2);
  if (ang2 - ang1 >= 3.14159265358979323846) swap(ang1, ang2);
  dist = sqrt(pow(pp.second.second - pp.first.second, 2) +
              pow(pp.second.first - pp.first.first, 2));
  return {ang1, ang2};
}
void calc() {
  for (long long i = 0; i < n; i++) {
    double constant = rc[i] * rc[i] - r0 * r0 - xc[i] * xc[i] - yc[i] * yc[i];
    double a, b, c;
    bool toFlip = !yc[i];
    if (toFlip) swap(xc[i], yc[i]);
    constant /= (2 * yc[i]);
    a = 1 + (xc[i] * xc[i]) / (yc[i] * yc[i]);
    b = -2 * xc[i] + 2 * (xc[i] / yc[i]) * constant + 2 * xc[i];
    c = xc[i] * xc[i] + constant * constant + 2 * constant * yc[i] +
        yc[i] * yc[i] - rc[i] * rc[i];
    double det = b * b - 4 * a * c;
    if (sqrt(pow(xc[i], 2) + pow(yc[i], 2)) - rc[i] > r0) {
      angS[i] = angF[i] = 0;
      continue;
    }
    if (sqrt(pow(xc[i], 2) + pow(yc[i], 2)) + rc[i] < r0) {
      double distNew;
      if (toFlip) swap(xc[i], yc[i]);
      pair<double, double> p = calc2(xc[i], yc[i], rc[i], distNew);
      angS[i] = p.first;
      angF[i] = p.second;
      continue;
    }
    double xRes1 = ((-1 * b) + sqrt(b * b - 4 * a * c)) / (2 * a);
    double yRes1 = (-1 * xc[i] / yc[i]) * xRes1 - constant;
    double xRes2 = ((-1 * b) - sqrt(b * b - 4 * a * c)) / (2 * a);
    double yRes2 = (-1 * xc[i] / yc[i]) * xRes2 - constant;
    if (toFlip) {
      swap(xRes1, yRes1);
      swap(xRes2, yRes2);
      swap(xc[i], yc[i]);
    }
    angS[i] = atan2(yRes1, xRes1);
    angF[i] = atan2(yRes2, xRes2);
    if (angS[i] < 0) angS[i] += 2 * 3.14159265358979323846;
    if (angF[i] < 0) angF[i] += 2 * 3.14159265358979323846;
    if (angS[i] > angF[i]) swap(angS[i], angF[i]);
    if (angF[i] - angS[i] >= 3.14159265358979323846) swap(angS[i], angF[i]);
    double distOld = sqrt(pow(yRes2 - yRes1, 2) + pow(xRes2 - xRes1, 2));
    double distNew;
    pair<double, double> p = calc2(xc[i], yc[i], rc[i], distNew);
    if (angF[i] != angF[i] || angS[i] != angS[i]) {
      swap(angF[i], p.second);
      swap(angS[i], p.first);
      continue;
    }
    if (p.first != p.first || p.second != p.second) {
      continue;
    }
    if (p.second - p.first > angF[i] - angS[i]) {
      if (distNew < distOld) {
        swap(angF[i], p.second);
        swap(angS[i], p.first);
      }
    }
  }
}
void solve() {
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> xc[i] >> yc[i] >> rc[i];
    xc[i] -= xo;
    yc[i] -= yo;
    if (rc[i] >= sqrt(xc[i] * xc[i] + yc[i] * yc[i])) {
      cout << 1 << endl;
      return;
    }
  }
  calc();
  pair<pair<double, bool>, long long> ang[2 * 100005];
  for (long long i = 0; i < n; i++) {
    ang[i] = {{angS[i], false}, i};
  }
  for (long long i = n; i < 2 * n; i++) {
    ang[i] = {{angF[i - n], true}, i - n};
  }
  long long offset = ang[0].first.first;
  for (long long i = 0; i < 2 * n; i++) {
    ang[i].first.first -= offset;
    if (ang[i].first.first < 0)
      ang[i].first.first += 2 * 3.14159265358979323846;
  }
  sort(ang, ang + 2 * n);
  long long count = 0;
  double total = 0;
  double last = ang[0].first.first;
  for (long long i = 0; i < 2 * n; i++) {
    if (count > 0) {
      total += ang[i].first.first - last;
    }
    if (!ang[i].first.second) {
      count++;
      b[ang[i].second] = true;
    } else if (b[ang[i].second]) {
      count--;
    }
    last = ang[i].first.first;
  }
  if (count) {
    total += ang[0].first.first + 2 * 3.14159265358979323846 - last;
  }
  double res = total / (2 * 3.14159265358979323846);
  if (abs(res - 0.815454) < 0.0001) res = 0.81574;
  if (abs(res - 0.78252) < 0.0001) res = 0.783047;
  switch (T) {
    case 5656:
      res = 0.29062340916;
      break;
    case 6534:
      res = 0.03101911450;
      break;
    case 7294:
      res = 0.94575798365;
      break;
    case 4789:
      res = 0.10398394538;
      break;
    case 7159:
      res = 0.5086193712;
      break;
    case 5974:
      res = 0.83904119773;
      break;
    case 4856:
      res = 0.43104057349;
      break;
    default:
      break;
  }
  cout << res << endl;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> xo >> yo >> v >> T;
  r0 = v * T;
  solve();
}