#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);
  if (x1 == x2 && y1 == y2) {
    long double r = R / 2.0l;
    long double x = x1, y = y1 + r;
    printf("%.9Lf %.9Lf %.9Lf\n", x, y, r);
    return 0;
  }
  complex<long double> p1(x1, y1), p2(x2, y2);
  complex<long double> p3 = p1 - p2;
  if (hypot((p3).real(), (p3).imag()) >= R - 1e-6)
    return printf("%.9Lf %.9Lf %.9Lf\n", p1.real(), p1.imag(), (long double)R),
           0;
  long double r = (hypot((p3).real(), (p3).imag()) + R) / 2;
  p3 = p3 * ((hypot((p3).real(), (p3).imag()) + R) /
             hypot((p3).real(), (p3).imag())) +
       p2;
  complex<long double> c = (p2 + p3) / 2.0l;
  printf("%.9Lf %.9Lf %.9Lf\n", c.real(), c.imag(), r);
  return 0;
}
