#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, x1, y1, x2, y2;
  scanf("%d%d%d%d%d", &r, &x1, &y1, &x2, &y2);
  double xr, yr, rr;
  if (x1 == x2 && y1 == y2)
    xr = x1 + r / 2., yr = y1, rr = r / 2.;
  else if (1LL * (x1 - x2) * (x1 - x2) + 1LL * (y1 - y2) * (y1 - y2) <
           1LL * r * r) {
    double d = hypot(x2 - x1, y2 - y1);
    rr = (r + d) / 2;
    double dx = x1 - x2, dy = y1 - y2;
    double t = hypot(dx, dy);
    dx /= t;
    dy /= t;
    xr = x2 + dx * rr;
    yr = y2 + dy * rr;
  } else
    xr = x1, yr = y1, rr = r;
  printf("%.12lf %.12lf %.12lf\n", xr, yr, rr);
  return 0;
}
