#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  float r, x1, y1, x2, y2;
  scanf("%f%f%f%f%f", &r, &x1, &y1, &x2, &y2);
  double d = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
  if (d >= r)
    printf("%f %f %f", x1, y1, r);
  else {
    double r1 = d + r, cx, cy;
    if (x2 == x1 && y2 == y1) {
      x2 = x1 + r;
      y2 = y1;
      cx = (x1 + x2) / 2.0;
      cy = (y1 + y2) / 2.0;
      r1 = r / 2.0;
      printf("%.15f %.15f %.15f", cx, cy, r1);
      return 0;
    }
    r1 = r1 / 2.0;
    cx = x2 + r1 * (x1 - x2) / d;
    cy = y2 + r1 * (y1 - y2) / d;
    printf("%.15lf %.15lf %.15lf", cx, cy, r1);
  }
  return 0;
}
