#include <bits/stdc++.h>
using namespace std;
vector<int> vec;
string second;
long long arr[200005], barr[100005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  long double R, x1, x2, y1, y2;
  cin >> R >> x1 >> y1 >> x2 >> y2;
  long double dist = sqrtl((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
  if (dist >= R) {
    cout << fixed << setprecision(10) << x1 << " " << y1 << " " << R << endl;
    return 0;
  }
  long double r = (dist + R) * (0.5);
  long double d = dist / r;
  long double x = (x1 - (1 - d) * x2) / d, y = (y1 - (1 - d) * y2) / d;
  if (d == 0) x = x1 + r, y = y1;
  cout << fixed << setprecision(10) << x << " " << y << " " << r << endl;
  return 0;
}
