#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    int N;
    cin >> N;

    int x0, y0, xn, yn;
    cin >> x0 >> y0;
    cin >> xn >> yn;

    double pi_n = 2.0 * M_PI / static_cast<double>(N);

    double cx = static_cast<double>(x0 + xn) / 2.0;
    double cy = static_cast<double>(y0 + yn) / 2.0;

    double x1 = x0 - cx;
    double y1 = y0 - cy;

    double xx1 = cos(pi_n) * x1 - sin(pi_n) * y1;
    double yy1 = sin(pi_n) * x1 + cos(pi_n) * y1;

    x1 = xx1 + cx;
    y1 = yy1 + cy;

    printf("%.11f %.10f\n", x1, y1);

    return 0;
}

#include <math.h>

#include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() { int N;
    cin >> N ;
    vector<int> X(N);
    long long M=0, C=0;
    long double U = 0.0;
    for (int i = 0; i < N; i++){
        int temp;
        cin >> temp;
        M += abs(temp);
        U += pow(abs(temp), 2);
        if (C < abs(temp)) C = abs(temp);
    }
    U = pow(U, 0.5);
    cout << M << endl;
    cout << setprecision(20) << fixed << U << endl;
    cout << C << endl;
    }