#include <bits/stdc++.h>
using namespace std;
int static const N = 200010;
long long x1, x2, yy1, yy2, r;
int main() {
  cin >> r >> x1 >> yy1 >> x2 >> yy2;
  long double d = sqrt(pow(x2 - x1, 2) + pow(yy2 - yy1, 2));
  if (pow(x2 - x1, 2) + pow(yy2 - yy1, 2) >= r * r) {
    cout << x1 << " " << yy1 << " " << r << endl;
  } else {
    long double R = (d + r) / 2;
    long double xk, yyk;
    if (d != 0) {
      xk = R / d * (x1 - x2) + x2;
      yyk = R / d * (yy1 - yy2) + yy2;
    } else {
      yyk = yy1;
      xk = x1 - ((long double)r) / 2;
      R = ((long double)r) / 2;
    }
    printf("%.9lf %.9lf %.9lf\n", (double)xk, (double)yyk, (double)R);
  }
  return 0;
}
