import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } double dot(double[] a,double[] b) { double ret=0; for(int i=0;i<3;++i)ret+=a[i]*b[i]; return ret; } double norm(double[] a) { double ret=0; for(int i=0;i