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.
#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 1e-21;
int n;
pair<long double, long double> P, c[100100];
long double V, T, R, r[100100];
pair<long double, long double> p1, p2;
long double a1, a2;
long double rld() {
  double first;
  scanf("%lf", &first);
  return first;
}
long double dst(pair<long double, long double> p1,
                pair<long double, long double> p2) {
  return sqrt((p1.first - p2.first) * (p1.first - p2.first) +
              (p1.second - p2.second) * (p1.second - p2.second));
}
bool inC(pair<long double, long double> p, pair<long double, long double> c,
         long double r) {
  long double d = dst(p, c);
  if (d <= r) return 1;
  return 0;
}
bool chk2(pair<long double, long double> p, long double R,
          pair<long double, long double> c, long double r) {
  long double d = sqrt(dst(p, c) * dst(p, c) - r * r);
  if (d <= R) return 1;
  return 0;
}
int CvL(long double r, long double a, long double b, long double c) {
  long double x0 = -a * c / (a * a + b * b);
  long double y0 = -b * c / (a * a + b * b);
  if (c * c > r * r * (a * a + b * b) + EPS)
    return 0;
  else if (abs(c * c - r * r * (a * a + b * b)) < EPS) {
    p1 = make_pair(x0, y0);
    return 1;
  } else {
    long double d = r * r - c * c / (a * a + b * b);
    long double mult = sqrt(d / (a * a + b * b));
    p1 = make_pair(x0 - b * mult, y0 + a * mult);
    p2 = make_pair(x0 + b * mult, y0 - a * mult);
    return 2;
  }
}
bool CvC(pair<long double, long double> c1, long double r1,
         pair<long double, long double> c2, long double r2) {
  long double a, b, c;
  a = -2 * c2.first;
  b = -2 * c2.second;
  c = c2.first * c2.first + c2.second * c2.second + r1 * r1 - r2 * r2;
  if (CvL(r1, a, b, c) == 2) {
    a1 = atan2(p1.second, p1.first);
    a2 = atan2(p2.second, p2.first);
    return 1;
  }
  return 0;
}
void kas(pair<long double, long double> c1, pair<long double, long double> c2,
         long double r2) {
  long double angle = abs(asin(r2 / dst(c1, c2)));
  a1 = atan2(c2.second, c2.first) - angle;
  a2 = atan2(c2.second, c2.first) + angle;
}
long double to_grad(long double a) {
  long double res = 180.0 * a / M_PI;
  if (res < 0.0) res += 360.0;
  if (res >= 360.0) res -= 360.0;
  return res;
}
vector<pair<long double, long double> > angles;
vector<pair<long double, long double> > AS;
long double sum = 0.0;
int main() {
  P.first = rld();
  P.second = rld();
  V = rld();
  T = rld();
  scanf("%d", &n);
  R = V * T;
  for (int i = 0; i < (n); i++) {
    c[i].first = rld();
    c[i].second = rld();
    r[i] = rld();
    c[i].first -= P.first;
    c[i].second -= P.second;
    if (inC(make_pair(0.0, 0.0), c[i], r[i])) {
      cout << 1.0 << endl;
      return 0;
    }
  }
  for (int i = 0; i < (n); i++) {
    if (chk2(make_pair(0, 0), R, c[i], r[i])) {
      kas(make_pair(0, 0), c[i], r[i]);
      angles.push_back(make_pair(a1, a2));
    } else {
      if (CvC(make_pair(0.0, 0.0), R, c[i], r[i]))
        angles.push_back(make_pair(a1, a2));
    }
  }
  for (int i = 0; i < (angles.size()); i++) {
    if (to_grad(angles[i].first) > to_grad(angles[i].second)) {
      AS.push_back(
          make_pair(to_grad(angles[i].first), to_grad(2 * M_PI - 1e-10)));
      AS.push_back(make_pair(to_grad(0), to_grad(angles[i].second)));
    } else
      AS.push_back(
          make_pair(to_grad(angles[i].first), to_grad(angles[i].second)));
  }
  sort(AS.begin(), AS.end());
  cout << fixed << setprecision(10);
  R = 0.0;
  for (int i = 0; i < (AS.size()); i++) {
    if (AS[i].first < R) {
      if (AS[i].second > R) sum += AS[i].second - R;
    } else
      sum += AS[i].second - AS[i].first;
    R = max(R, AS[i].second);
  }
  cout << float(sum / 360) << endl;
  return 0;
}
