#include #include #include using namespace std; const double pi = acos(-1); const double upper = 55 * pi / 180; const double lower = -5 * pi / 180; int main(){ int T; cin >> T; for(int i=0;i> x >> y; double theta = atan2(y, x); if(lower < theta && theta < upper){ res = theta; } } printf("%.15f\n", res * 180 / pi); } return 0; }