Problem: You are given two rectangles on a plane. The centers of both rectangles are located in the origin of coordinates (meaning the center of the rectangle's symmetry). The first rectangle's sides are parallel to the coordinate axes: the length of the side that is parallel to the Ox axis, equals w, the length of the side that is parallel to the Oy axis, equals h. The second rectangle can be obtained by rotating the first rectangle relative to the origin of coordinates by angle α.

<image>

Your task is to find the area of the region which belongs to both given rectangles. This region is shaded in the picture.

Input

The first line contains three integers w, h, α (1 ≤ w, h ≤ 106; 0 ≤ α ≤ 180). Angle α is given in degrees.

Output

In a single line print a real number — the area of the region which belongs to both given rectangles.

The answer will be considered correct if its relative or absolute error doesn't exceed 10 - 6.

Examples

Input

1 1 45


Output

0.828427125


Input

6 4 30


Output

19.668384925

Note

The second sample has been drawn on the picture above.

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class B {
	
	static StringTokenizer st;
	static BufferedReader in;
	public static void main(String[] args) throws IOException {
		in = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		double w = nextDouble();
		double h = nextDouble();
		if (h > w) {
			double t = h;
			h = w;
			w = t;
		}
		double alfa = nextDouble();
		if (Math.abs(alfa-90) < 1e-8) {
			if (w >= h) {
				System.out.println(h*h);
			}
			else
				System.out.println(w*w);
			return;
		}
		if (alfa > 90)
			alfa = 180-alfa;
		if (alfa==0) {
			System.out.println(w*h);
			return;
		}
		alfa = Math.toRadians(alfa);
		double x0 = h/2*Math.sin(alfa);
		double y0 = -h/2*Math.cos(alfa);
		double k = Math.tan(alfa);
		double b = y0-k*x0;
		double y1 = k*w/2+b;
		double x1 = (-h/2-b)/k;
		double ds = 0;
		if (y1 <= h/2) {
			ds = (w/2-x1) * (y1+h/2)/2;
			k = -1/Math.tan(alfa);
			x0 = w/2*Math.cos(alfa);
			y0 = w/2*Math.sin(alfa);
			b = y0-k*x0;
			y1 = k*w/2+b;
			x1 = (h/2-b)/k;
			ds += (h/2-y1)*(w/2-x1)/2;
		}
		else {
			double x2 = (-h/2-b)/k;
			x1 = (h/2-b)/k;
			ds = (w/2-x1+w/2-x2)/2*h;
		}
		ds *= 2;
		System.out.println(w*h-ds);
		pw.close();
	}
	private static int nextInt() throws IOException{
		return Integer.parseInt(next());
	}
	
	private static long nextLong() throws IOException{
		return Long.parseLong(next());
	}
	
	private static double nextDouble() throws IOException{
		return Double.parseDouble(next());
	}
	
	private static String next() throws IOException {
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(in.readLine());
        }
        return st.nextToken();
    }
}