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.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class P_280A {
    static final FS sc = new FS();
    static final PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        double w = sc.nextInt();
        double h = sc.nextInt();
        if(w<h){
            double t = w;
            w = h;
            h = t;
        }
        double b = w/2, a = h/2;
        double al = sc.nextInt();
        if(al==0 || al==180){
            System.out.println(w*h);
            return;
        }
        if(al>90) al = 180-al;
        al = al*(Math.PI)/180;
        double phi = Math.atan2(h,w);
        double ans = 0;
//        System.out.println(a+" "+b+" "+al+" "+Math.sin(al)+" "+Math.sin(al));
//        System.out.println(((2*a*b*Math.sin(al)+(a*a+b*b)*((Math.cos(al)-1)))));
//        System.out.println((Math.sin(al)*Math.cos(al)));
        if(2*phi>al){
            ans = 2*((2*a*b*Math.sin(al)+(a*a+b*b)*((Math.cos(al)-1)))/(Math.sin(al)*Math.cos(al)));
        }
        else{
            ans = (4*a*a)/Math.sin(al);
        }
        System.out.println(ans);
    }

    static class FS {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (Exception ignored) {
                }
            }
            return st.nextToken();
        }

        int[] nextArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = nextInt();
            }
            return a;
        }

        long[] nextLongArray(int n) {
            long[] a = new long[n];
            for (int i = 0; i < n; i++) {
                a[i] = nextLong();
            }
            return a;
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
}