import java.io.* ; public class robot { static double spin(double[] x, double[] y, int a, int b, int c, int d) { return 180 / Math.PI * Math.abs(Math.IEEEremainder(Math.atan2(y[b]-y[a], x[b]-x[a])- Math.atan2(y[d]-y[c], x[d]-x[c]), 2*Math.PI)) ; } static double d(double[] x, double[] y, int a, int b) { return Math.sqrt((x[a]-x[b])*(x[a]-x[b])+(y[a]-y[b])*(y[a]-y[b])) ; } public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ; while (true) { String s = br.readLine() ; String[] f = s.split(" ") ; double r = Double.parseDouble(f[0]) ; int n = Integer.parseInt(f[1]) ; if (n < 0) return ; double x[] = new double[n] ; double y[] = new double[n] ; double t[][][] = new double[n][n][n] ; for (int i=0; i