#include <bits/stdc++.h>
using namespace std;
long long sq(long long a) { return a * a; }
int main() {
  long long r, x1, y1, x2, y2;
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(12);
  cin >> r >> x1 >> y1 >> x2 >> y2;
  if (sq(x1 - x2) + sq(y1 - y2) > sq(r))
    cout << (long double)x1 << " " << (long double)y1 << " " << (long double)r
         << endl;
  else if (x1 == x2 && y1 == y2)
    cout << x1 + (long double)r / 2 << " " << (long double)y1 << " "
         << (long double)r / 2 << endl;
  else {
    long double dis = sqrt(sq(x1 - x2) + (long double)sq(y1 - y2));
    long double R = (dis + r) / 2;
    long double X = x2 + R * (x1 - x2) / dis;
    long double Y = y2 + R * (y1 - y2) / dis;
    cout << X << " " << Y << " " << R << endl;
  }
  return 0;
}
