import java.util.*;
public class Main
{
{
Scanner in
= new Scanner
(System.
in); double
Ax = in.nextDouble(),
Ay = in.nextDouble(),
Az = in.nextDouble(),
Bx = in.nextDouble(),
By = in.nextDouble(),
Bz = in.nextDouble(),
Cx = in.nextDouble(),
Cy = in.nextDouble(),
Cz = in.nextDouble();
double V = (Ax * (By * Cz - Bz * Cy) - Bx * (Ay * Cz - Az * Cy) + Cx * (Ay * Bz - Az * By)) / 6.0;
if (V < 0) V *= -1;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKcHVibGljIGNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZG91YmxlCgkJCUF4ID0gaW4ubmV4dERvdWJsZSgpLAoJCQlBeSA9IGluLm5leHREb3VibGUoKSwKCQkJQXogPSBpbi5uZXh0RG91YmxlKCksCgkJCUJ4ID0gaW4ubmV4dERvdWJsZSgpLAoJCQlCeSA9IGluLm5leHREb3VibGUoKSwKCQkJQnogPSBpbi5uZXh0RG91YmxlKCksCgkJCUN4ID0gaW4ubmV4dERvdWJsZSgpLAoJCQlDeSA9IGluLm5leHREb3VibGUoKSwKCQkJQ3ogPSBpbi5uZXh0RG91YmxlKCk7CgkJZG91YmxlIFYgPSAoQXggKiAoQnkgKiBDeiAtIEJ6ICogQ3kpIC0gQnggKiAoQXkgKiBDeiAtIEF6ICogQ3kpICsgQ3ggKiAoQXkgKiBCeiAtIEF6ICogQnkpKSAvIDYuMDsKCQlpZiAoViA8IDApIFYgKj0gLTE7CgkJU3lzdGVtLm91dC5wcmludChWKTsKCX0KfQ==