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.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.OutputStream;
import java.util.Arrays;
public class E {
	private static class Segment implements Comparable<Segment> {
		double s;
		double e;
		public Segment(double s, double e) {
			this.s = s;
			this.e = e;
		}
		public int compareTo(Segment a) {
			if(s<a.s) return -1;
			if(s==a.s) return 0;
			else return 1;
		}
	}
	public static void main(String args[]) {
		Kattio sc = new Kattio(System.in);
		long x0 = sc.getLong();
		long y0 = sc.getLong();
		long v = sc.getLong();
		long T = sc.getLong();
		long r0 = v*T;
		double r00 = (r0+0.0)*r0;
		double PI2 = 2*Math.PI;
		int n = sc.getInt();
		Segment[] set = new Segment[2*n];
		int w = 0;
		for(int i = 0; i<n; i++) {
			long x = sc.getLong() - x0;
			long y = sc.getLong() - y0;
			long r = sc.getLong();
			long dd = x*x + y*y;
			double d = Math.sqrt(dd);
			if(dd > (double)(r0+r)*(r0+r)) continue;
			if(r*r >= dd) {
				System.out.println(1.0);
				return;
			}
			double base = (Math.atan2(y,x) + PI2)%PI2;
			double alpha;
			if(Math.sqrt(dd - r*r) <= r0) {
				alpha = Math.asin(r/d);				
			} else {
				double calpha = (dd + r00 - r*(r+0.0))/(2*d*r0);
				if(calpha >= 1) calpha = 1;
				if(calpha <= -1) calpha = -1;
				alpha = Math.abs(Math.acos(calpha));
			}
			if(alpha == 0) continue;
			double s = base - alpha;
			double e = base + alpha;
			if(s<0) {
				s += PI2;
				set[w++] = new Segment(s,PI2);
				s = 0;
			}
			if(e>PI2) {
				e -= PI2;
				set[w++] = new Segment(0,e);
				e = PI2;
			}
			set[w++] = new Segment(s,e);
			
			
		}
		if(w == 0) {
			System.out.println(0);
			return;
		}
		double sum = 0;
		Arrays.sort(set,0,w);
		double start = set[0].s;
		double end = set[0].e;
		for(int a = 1; a<w; a++) {
			if(set[a].s>end) {
				sum += end - start;
				start = set[a].s;
				end = set[a].e;
			} else {
				end = Math.max(end,set[a].e);
			}
		}
		sum += end - start;
		System.out.println(sum/(2*Math.PI));
	}
	/*public static void update(TreeSet<Segment> set, double s, double e) {
		if(s == e) return;
		if(s>e) {
			update(set,0,e);
			update(set,s,Math.PI*2);
			return;
		}
		//System.out.println(s + " " + e);
		
		
		NavigableSet<Segment> sub = set.subSet(new Segment(s,s),true,new Segment(e,e),true);
		//System.out.println(sub.size());
		
		Segment ss = set.ceiling(new Segment(s,s));
		Segment ee = set.ceiling(new Segment(e,e));
		
		Iterator<Segment> itr = sub.iterator();
		while(itr.hasNext()) {
			itr.next();
			itr.remove();
		}
		boolean a = (ss != null && (ss.compareTo(new Segment(s,s)) == 0));
		boolean b = (ee != null && (ee.compareTo(new Segment(e,e)) == 0));
		//System.out.println(a + " " + b);
		if(!a && !b) {
			//System.out.println("false:false " + s + " " + e);
			
			set.add(new Segment(s,e));
			
		} else if(!a && b) {
			//System.out.println("false:true " + ee.s + " " + ee.e + " " + s + " " + e);
			ee.s = s;
			set.add(ee);
		} else if(a && !b){
			//System.out.println("true:false " + ss.s + " " + ss.e + " " + s + " " + e);
			ss.e = e;
			set.add(ss);
		} else if(ss != ee) {
			//System.out.println("true:true " + ss.s + " " + ss.e + " " + s + " " + e);
			ss.e = e;
			set.add(ss);
		} else {
			set.add(ss);
		}
		
		
	}*/
}
class Kattio extends PrintWriter {
    public Kattio(InputStream i) {
	super(new BufferedOutputStream(System.out));
	r = new BufferedReader(new InputStreamReader(i));
    }
    public Kattio(InputStream i, OutputStream o) {
	super(new BufferedOutputStream(o));
	r = new BufferedReader(new InputStreamReader(i));
    }

    public boolean hasMoreTokens() {
	return peekToken() != null;
    }

    public int getInt() {
	return Integer.parseInt(nextToken());
    }

    public double getDouble() { 
	return Double.parseDouble(nextToken());
    }

    public long getLong() {
	return Long.parseLong(nextToken());
    }

    public String getWord() {
	return nextToken();
    }



    private BufferedReader r;
    private String line;
    private StringTokenizer st;
    private String token;

    private String peekToken() {
	if (token == null) 
	    try {
		while (st == null || !st.hasMoreTokens()) {
		    line = r.readLine();
		    if (line == null) return null;
		    st = new StringTokenizer(line);
		}
		token = st.nextToken();
	    } catch (IOException e) { }
	return token;
    }

    private String nextToken() {
	String ans = peekToken();
	token = null;
	return ans;
    }
}