import java.io.*;

public class Solution1
{
    public static void main (String[] args) throws IOException, NumberFormatException
    {
	BufferedReader input = new BufferedReader (new FileReader ("DATA1.txt"));
	PrintWriter output = new PrintWriter (new FileWriter ("OUT1.txt"));


	for (int numTimes = 1 ; numTimes <= 5 ; numTimes++)
	{
	    int temp = 0;
	    double time;
	    double angle = 0.0;
	    double x = 0.0;
	    double d = 0.0;
	    String in = input.readLine ();
	    for (int i = 0 ; i < in.length () ; i++)
	    {
		
		if (in.charAt (i) == ' ')
		{
		    angle = Double.parseDouble (in.substring (0, i));
		    x = Double.parseDouble (in.substring (i + 1, in.length ()));
		    break;
		}
	    }

	    time = x * Math.sin (Math.toRadians (angle)) / 9.81;
	    d = time * x * Math.cos (Math.toRadians (angle)) * 2;

	    output.println ("" + (int) Math.round (d));
	}
	output.close ();
    }
}


