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 JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: olymp
 * Date: 13.09.15
 * Time: 11:00
 * To change this template use File | Settings | File Templates.
 */
public class Test {
    static BufferedReader in = null;
    static PrintWriter out = null;
    static StringTokenizer st = new StringTokenizer("");

    public static void main(String[] args) {
        try {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            solve();

            out.close();
            in.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static String readString() {
        while (!st.hasMoreTokens()) {
            try {
                st = new StringTokenizer(in.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    public static int readInt() {
        return Integer.parseInt(readString());
    }

    public static long readLong() {
        return Long.parseLong(readString());
    }

    public static double readDouble() {
        return Double.parseDouble(readString());
    }

    public static boolean isPalindrome(String s) {
        char[] x = s.toCharArray();
        for (int i = 0; i < s.length() / 2; i++) {
            if (x[i] != x[s.length() - 1 - i]) return false;
        }
        return true;
    }

    public static class Pair implements Comparable<Pair> {
        public double x, y;

        public Pair(double x, double y) {
            this.x = x;
            this.y = y;
        }

        @Override
        public int compareTo(Pair o) {
            if (Double.compare(this.x, o.x) != 0) return Double.compare(this.x, o.x);
            else return Double.compare(this.y, o.y);
        }
    }

    public static boolean isPrime(int x) {
        boolean prime = true;
        for (int i = 2; i * i <= x; i++) {
            if (x % i == 0) {
                prime = false;
                break;
            }
        }
        return prime;
    }

    private static int countDivisors(int x) {
        int count = 1;
        for (int i = 2; i * i <= x; i++) {
            while (x % i == 0) {
                count++;
                x /= i;
            }
        }
        if (x != 1) count++;
        return count;
    }


    public static long hash(char[] a) {
        long ans = 0;
        long pow = 31;
        for (int i = 0; i < a.length; i++) {
            ans += pow * a[i];
            pow *= 31;
        }
        return ans;
    }

    private static long mod = 1_000_000_007;

    private static long binPow(long x, int step) {
        if (step == 0) return 1;
        if (step == 1) return x % mod;
        if (step % 2 == 0) {
            long temp = binPow(x, step / 2) % mod;
            return (temp * temp) % mod;
        }
        return (x * binPow(x, step - 1)) % mod;
    }

    static void solve() throws IOException {
        long x0 = readInt();
        long y0 = readInt();
        long v = readInt();
        long t = readInt();
        long R = v * t;
        int n = readInt();
        ArrayList<Pair> borders = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long x = readInt() - x0;
            long y = readInt() - y0;
            long r = readInt();
            long L = y * y + x * x;
            if (L <= r * r) {
                System.out.println(1);
                return;
            }
            double d = Math.sqrt(L);
            if (d >= r + R) continue;
            double alphaMid = Math.atan2(y, x);
            double temp2 = (0.0+r) / Math.sqrt(L);
            if (temp2 >= 1) temp2 = 1;
            if (temp2 <= -1) temp2 = -1;
            double alpha = Math.asin(temp2);
            if (L - r * r >= (0.0 + R) * (0.0 + R)) {
                double temp = (0.0 -r * r + L + R * R) / (d * R * 2.0);
                if (temp >= 1) temp = 1;
                if (temp <= -1) temp = -1;
                alpha = Math.acos(temp); // нормально
            }
            double rightBorder = alphaMid - alpha;
            double leftBorder = alphaMid + alpha;
            if (rightBorder < -Math.PI) {
                borders.add(new Pair(Math.PI, rightBorder + 2.0 * Math.PI));
                borders.add(new Pair(leftBorder, -Math.PI));
                continue;
            }
            if (leftBorder > Math.PI) {
                borders.add(new Pair(Math.PI, rightBorder));
                borders.add(new Pair(leftBorder - Math.PI * 2.0, -Math.PI));
                continue;
            }
            borders.add(new Pair(leftBorder, rightBorder));
        }
        borders.sort(new Comparator<Pair>() {
            @Override
            public int compare(Pair o1, Pair o2) {
                if (Double.compare(o1.y, o2.y) != 0) return Double.compare(o1.y, o2.y);
                else return Double.compare(o1.x, o2.x);
            }
        });
        double ans = 0;
        double prevLeft = -Math.PI;
        for (Pair pair : borders) {
            double left = pair.x;
            double right = pair.y;

            if(prevLeft > right){
                ans+=Math.max(0,left - prevLeft);
            } else {
                ans+=left-right;
            }
            prevLeft = Math.max(prevLeft,left);
        }
        System.out.println(ans / (2*Math.PI));

    }

}