using System; using System.Collections; using System.Collections.Generic; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ double eps=1e-12; for(;T>0;T--){ List L=new List(); rs(); for(int i=0;i<6;i++){ var d=rda(); L.Add(new Pair(d[0],d[1])); } L.Sort((x,y)=>(x.X>y.X?-1:x.X-eps){ double ans=Math.Atan2(L[0].Y,L[0].X)*180.0/Math.PI; Console.WriteLine(ans); continue; } double ans2=60+Math.Atan2(L[0].Y,L[0].X)*180.0/Math.PI; if(Math.Abs(ans2-60)int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }