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;
#pragma comment(linker, "/STACK:64000000")
const int infi = 1e9 + 7;
const long long infl = 1e18 + 7;
const long double pi = acosl(-1.0);
const long double eps = 1e-18;
int eq(long double a, long double b) { return fabsl(a - b) <= eps; }
int le(long double a, long double b) { return a <= b || eq(a, b); }
struct point {
  long double x, y;
  point() {}
  point(long double x, long double y) : x(x), y(y) {}
  point operator+(const point &a) const { return point(x + a.x, y + a.y); }
  point operator-(const point &a) const { return point(x - a.x, y - a.y); }
  point operator*(long double a) const { return point(x * a, y * a); }
  point operator/(long double a) const { return point(x / a, y / a); }
  int operator==(const point &a) const { return eq(a.x, x) && eq(a.y, y); }
};
template <class T>
T sqr(T a) {
  return a * a;
}
long double dist(const point &a) { return sqrtl(sqr(a.x) + sqr(a.y)); }
long double dist(const point &a, const point &b) { return dist(a - b); }
long double sn(const point &a, const point &b) { return a.x * b.y - a.y * b.x; }
long double cs(const point &a, const point &b) { return a.x * b.x + a.y * b.y; }
pair<point, long double> ar[100500];
struct line {
  long double a, b, c;
  line() {}
  line(long double a, long double b, long double c) : a(a), b(b), c(c) {}
  long double get(const point &q) const { return a * q.x + b * q.y + c; }
  int in(const point &q) const { return eq(get(q), 0); }
};
long double dist(const line &a, const point &b) {
  return fabsl(a.get(b)) / sqrtl(sqr(a.a) + sqr(a.b));
}
pair<point, point> inter(const point &p1, long double r1, const line &l) {
  long double d = dist(l, p1);
  point nr = point(l.a, l.b);
  if (!eq(dist(nr), 0)) nr = nr / dist(nr) * d;
  point a = p1 + nr;
  if (!l.in(a)) {
    nr = nr * (-1);
    a = p1 + nr;
  }
  long double z = sqr(r1);
  long double x = sqr(d);
  long double b = sqrtl(max(z - x, (long double)0));
  point q = point(nr.y, -nr.x);
  if (!eq(dist(q), 0)) q = q / dist(q) * b;
  pair<point, point> ans;
  ans.first = a + q;
  ans.second = a - q;
  return ans;
}
pair<point, point> inter(const point &p1, long double r1, const point &p2,
                         long double r2) {
  r1 = min(r1, sqrtl(sqr(dist(p1, p2)) - sqr(r2)));
  point tmp = p2 - p1;
  pair<point, point> ans =
      inter(point(0, 0), r1,
            line(-2.0 * tmp.x, -2.0 * tmp.y,
                 sqr(tmp.x) + sqr(tmp.y) + sqr(r1) - sqr(r2)));
  ans.first = ans.first + p1;
  ans.second = ans.second + p1;
  return ans;
}
long double get_ang(long double a) { return -a + pi; }
long double get_ang(const point &a) { return get_ang(atan2l(a.x, a.y)); }
int check1(point a, point b, long long r) {
  long long d = sqr((long long)a.x - (long long)b.x) +
                sqr((long long)a.y - (long long)b.y);
  return r >= 3000000000LL || d <= sqr(r);
}
int check2(point a, point b, long long r) {
  long long d = sqr((long long)a.x - (long long)b.x) +
                sqr((long long)a.y - (long long)b.y);
  return r <= 3000000000LL && sqr(r) <= d;
}
int main() {
  cin.sync_with_stdio(false);
  cin.tie(0);
  point start;
  cout.precision(20);
  cout << fixed;
  long double v, T;
  cin >> start.x >> start.y >> v >> T;
  int n;
  cin >> n;
  for (int i = 0; i < (n); ++i)
    cin >> ar[i].first.x >> ar[i].first.y >> ar[i].second;
  long double r0 = v * T;
  vector<pair<long double, int> > sob;
  for (int i = 0; i < n; ++i) {
    point cur = ar[i].first;
    long double r = ar[i].second;
    long double d = dist(start, cur);
    if (check1(start, cur, r)) {
      cout << 1;
      return 0;
    }
    if (check2(start, cur, r0 + r)) {
      continue;
    }
    pair<point, point> tmp = inter(start, r0, cur, r);
    tmp.first = tmp.first - start, tmp.second = tmp.second - start;
    if (tmp.first == tmp.second) {
      if (tmp.first == start) {
        point v = cur - start;
        tmp.first = point(v.y, -v.x);
        tmp.second = point(-v.y, v.x);
      } else
        continue;
    }
    if (sn(tmp.first, tmp.second) < 0) swap(tmp.first, tmp.second);
    pair<long double, long double> ang =
        make_pair(get_ang(tmp.first), get_ang(tmp.second));
    if (eq(ang.first, ang.second)) continue;
    if (ang.first < ang.second) {
      sob.push_back(make_pair(ang.first, 1));
      sob.push_back(make_pair(ang.second, -1));
    } else {
      sob.push_back(make_pair(0, 1));
      sob.push_back(make_pair(ang.second, -1));
      sob.push_back(make_pair(ang.first, 1));
      sob.push_back(make_pair(pi * 2, -1));
    }
  }
  sort(sob.begin(), sob.end());
  long double ans = 0;
  long double lst = 0;
  int cnt = 0;
  for (int i = 0; i < (int)sob.size(); ++i) {
    if (!eq(lst, sob[i].first) && cnt) ans += sob[i].first - lst;
    cnt += sob[i].second;
    lst = sob[i].first;
  }
  if (!eq(lst, pi * 2) && cnt) ans += pi * 2 - lst;
  cout << ans / (pi * 2);
  return 0;
}