#include using namespace std; #define rep(i,n) for(ll i=0;i=0;i--) #define perl(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define pb push_back #define ins insert #define pqueue(x) priority_queue,greater> #define all(x) (x).begin(),(x).end() #define CST(x) cout<; using vvl=vector>; using pl=pair; using vpl=vector; using vvpl=vector; const ll MOD=1000000007; const ll MOD9=998244353; const int inf=1e9+10; const ll INF=4e18; const ll dy[8]={1,0,-1,0,1,1,-1,-1}; const ll dx[8]={0,-1,0,1,1,-1,1,-1}; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } struct P{ double x,y,z; }; vector pleq(P a,P b,P c){ vector ret(4); ret[0]=(b.y-a.y)*(c.z-a.z)-(c.y-a.y)*(b.z-a.z); ret[1]=(b.z-a.z)*(c.x-a.x)-(c.z-a.z)*(b.x-a.x); ret[2]=(b.x-a.x)*(c.y-a.y)-(c.x-a.x)*(b.y-a.y); ret[3]=-(ret[0]*a.x+ret[1]*a.y+ret[2]*a.z); return ret; } double dist(vector c,P q){ double ret=abs(c[0]*q.x+c[1]*q.y+c[2]*q.z+c[3]); ret/=sqrt(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]); return ret; } int main(){ ll n;cin >> n; P q;cin >> q.x >> q.y >> q.z; vector

p(n); rep(i,n){ cin >> p[i].x >> p[i].y >> p[i].z; } double ret=0; rep(i,n){ repl(j,i+1,n){ repl(k,j+1,n){ auto x=pleq(p[i],p[j],p[k]); ret+=dist(x,q); } } } CST(10); cout << ret <