Author:  ACM ICPC 20082009, NEERC, Northern Subregional Contest  Time limit:  3 sec  
Input file:  ground.in  Memory limit:  256 Mb  
Output file:  ground.out 
The Hilbert Mole is a small and very rare mole. The first and only specimen was found by David Hilbert at his backyard. This mole lives in a huge burrow under the ground, and the border of this burrow forms a Hilbert curve of nth order (H_{n}).
Hilbert curves can be defined as follows. H_{1} is a unit square with open top side (fig. 1a), H_{n} consists of four copies of H_{n − 1}: bottom left and bottom right are copied without changes, top left is rotated 90^{∘} counterclockwise and top right is rotated 90^{∘} clockwise. These small copies are connected by three segments of unit length (fig. 1b,c,d).
Trying to exterminate the mole, Mr. Hilbert fills the burrow with water (fig. 2). But air inside the burrow prevents water from filling it entirely. In this problem we suppose that air and water are incompressible and cannot leak throw the borders of the burrow. Your task is to find the total area of the burrow, filled with water.
Note that water can flow over the obstacle only when its level is strictly higher. See examples on fig. 3 for further clarification.
The first line of the input file contains two integer numbers: n and α — order of Hilbert curve and slope angle of surface in degrees.
The first line of the output file must contain a single real number — the total area of the burrow, filled with water. The relative error of the answer must not exceed 10^{−7}.
1 ≤ n ≤ 12, 0 ≤ α < 90.
No.  Input file (ground.in ) 
Output file (ground.out ) 

1 


2 


3 


4 

