#include using namespace std; #define int long long #define app push_back #define all(x) (x).begin(),(x).end() #ifdef LOCAL #define debug(...) [](auto...a){ ((cout << a << ' '), ...) << endl;}(#__VA_ARGS__, ":", __VA_ARGS__) #else #define debug(...) #endif #ifdef LOCAL #define __int128 long long #endif // LOCAL #define pt pair #define x first #define y second pt operator*(double c,pt a) {return pt(c*a.x,c*a.y);} pt operator-(pt a,pt b) {return pt(a.x-b.x,a.y-b.y);} pt operator+(pt a,pt b) {return pt(a.x+b.x,a.y+b.y);} double p; double dist(pt a,pt b) { return pow(abs(a.x-b.x),p)+pow(abs(a.y-b.y),p); } pt f(pt a,pt b,double len) { double l1=dist(a,b); return a+pow(len/l1,1/p)*(b-a); } int32_t main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); cin>>p; pair a[3];for(int i=0;i<3;++i) cin>>a[i].first>>a[i].second; pair cur=a[0]; double cudi=max({dist(a[0],a[1]),dist(a[1],a[2]),dist(a[2],a[0])}); debug(cudi); for(int it=0;it<100000;++it) { cudi*=0.999; double d[3];for(int i=0;i<3;++i) {d[i]=dist(cur,a[i]);} int pos=max_element(d,d+3)-d; cur=f(cur,a[pos],cudi); } cout<