#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;

int main() {
	ifstream filein("DATA1.txt");
	ofstream fileout("OUT1.txt");

	int loop = 5;

	while (loop--) {
		int a, v;
		double ans;
	
		filein >> a >> v;
	
		ans = (v * v * sin(2 * a * 3.14159265 / 180.0)) / 9.81;
		fileout << (int)(ans + 0.5) << endl;
	}
	
	filein.close();
	fileout.close();

	return(0);
}
