#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << ": " << arg1 << " |";
  __f(comma + 1, args...);
}
const int INF = 1 << 29;
const int MOD = 1e9 + 7;
double sqr(double x) { return x * x; }
int main() {
  double R, x1, y1, x2, y2;
  scanf("%lf%lf%lf%lf%lf", &R, &x1, &y1, &x2, &y2);
  double d = sqrt(sqr(x1 - x2) + sqr(y1 - y2));
  double r = (d + R) / 2;
  double x, y;
  if (d > R) {
    x = x1;
    y = y1;
    r = R;
  } else if (d < 1e-10) {
    x = x2;
    y = y2 + r;
  } else {
    x = (x1 - x2) / d * r + x2;
    y = (y1 - y2) / d * r + y2;
  }
  printf("%.10f %.10f %.10f\n", x, y, r);
  return 0;
}
