#include using namespace std; int main(){ int t;cin>>t; for(int i=0;i>x>>y; double th = atan2(y, x); if (th >=0) mi = min(mi, th); } printf("%.9f\n", mi * 180.0 / acos(-1)); } }