#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  double R, x1, x2, y1, y2;
  cin >> R >> x1 >> y1 >> x2 >> y2;
  double xa, ya, xe, ye, r, d;
  d = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  cout.precision(12);
  if (d == 0) {
    r = R / 2.0;
    xa = x1 + r;
    ya = y1;
  } else if (d >= R) {
    r = R;
    xa = x1;
    ya = y1;
  } else {
    xe = (R + d) * x1 - R * x2;
    xe /= d;
    ye = (R + d) * y1 - R * y2;
    ye /= d;
    xa = (xe + x2) / 2;
    ya = (ye + y2) / 2;
    r = (R + d) / 2;
  }
  cout << xa << " " << ya << " " << r << endl;
}
