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:
/*
If you want to aim high, aim high
Don't let that studying and grades consume you
Just live life young
******************************
What do you think? What do you think?
1st on Billboard, what do you think of it
Next is a Grammy, what do you think of it
However you think, I’m sorry, but shit, I have no fcking interest
*******************************
I'm standing on top of my Monopoly board
That means I'm on top of my game and it don't stop
til my hip don't hop anymore
https://www.a2oj.com/Ladder16.html
*******************************
300iq as writer = Sad!
*/
import java.util.*;
import java.io.*;
import java.math.*;

   public class x280A
   {
      public static void main(String hi[]) throws Exception
      {
         BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));
         StringTokenizer st = new StringTokenizer(infile.readLine());
         double W = Double.parseDouble(st.nextToken());
         double H = Double.parseDouble(st.nextToken());
         if(W < H)
         {
            double t = W;
            W = H;
            H = t;
         }
         int alpha = Integer.parseInt(st.nextToken());
         if(alpha == 0 || alpha == 180)
            System.out.println(W*H);
         else if(alpha == 90)
            System.out.println(H*H);
         else
         {
            alpha = Math.min(alpha, 180-alpha);
            double a = rad(1.0*alpha);
            double b = Math.atan(2*W*H/(W*W-H*H));
            if(a >= b)
               System.out.println(H/Math.sin(a)*H);
            else
            {
               double ca = Math.cos(a);
               double sa = Math.sin(a);
               double aa = (H * ca * (ca + 1) - W * sa * ca) / ((ca + 1) * (ca + 1) - sa * sa);
            	double c = H - aa * (1 + 1 / ca);
            	double d = c * ca / sa;
            	double e = c / sa;
            	double f = aa * sa / ca;
            	double t1 = aa * f;
            	double t2 = c * d;
               System.out.println(W*H-t1-t2);
            }
         }
      }
      public static double rad(double deg)
      {
         return deg*Math.PI/180;
      }
   }