#include using namespace std; typedef long long ll; int main() { int t; cin>>t; while (t--) { double x,y; cin>>x>>y; double ang=atan2(y,x)*180/acos(-1); while (ang>=60) ang-=60; cout<