import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n = koko.nextInt(); double[][] x = new double[n][6]; double[][] y = new double[n][6]; double[] ans = new double[n]; double[] sp = new double[n]; for(int i=0; i=(1-x[i][j])&&y[i][j]>Math.sin(Math.toRadians(-10))){ sp[i]=1-x[i][j]; if(x[i][j]>1){ ans[i] = Math.toDegrees(Math.acos(1)); }else{ ans[i] = Math.toDegrees(Math.asin(y[i][j])); } } } System.out.println(ans[i]); } } }