#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;

// 二次元幾何は複素数で考えると楽になるかもしれない

using C = complex<double>;
C inC() {
  double x, y;
  cin >> x >> y;
  return C(x, y);
}

int main() {
  int n;
  cin >> n;
  C s = inC();
  C t = inC();

  C o = (s + t) / 2.0;
  double PI = acos(-1);
  double rad = 2 * PI / n;
  C r(cos(rad), sin(rad));
  C ans = o + (s - o) * r;

  printf("%.10f %.10f\n", ans.real(), ans.imag());
  return 0;
}
#include <iostream>
using namespace std;
int main()
{
    int a,b,temp1[3],temp[3];
    cin>>a>>b;
    temp[0]=a%10;
    a=a/10;
    temp[0]+=a%10;
    a=a/10;
    temp[0]+=a%10;
    a=temp[0];

    temp[1]=b%10;
    b=b/10;
    temp[1]+=b%10;
    b=b/10;
    temp[1]+=b%10;
    b=temp[1];
    if(a>=b)
    cout<<a;
    else if(b>a)
   cout<<b;
}
