#include <bits/stdc++.h>
using namespace std;
double r, x, y, xx, yy;
int main() {
  scanf("%lf%lf%lf%lf%lf", &r, &x, &y, &xx, &yy);
  double dis = sqrt((x - xx) * (x - xx) + (y - yy) * (y - yy));
  if (dis == 0.0) {
    printf("%.16lf %.16lf %.16lf", x + (r / 2), y, r / 2);
    return 0;
  }
  if (dis >= r) {
    printf("%.1lf %.1lf %.1lf", x, y, r);
    return 0;
  }
  double x1, y1, tmp = (r / dis);
  x1 = (x - xx) * tmp + x;
  y1 = (y - yy) * tmp + y;
  dis = sqrt((x1 - xx) * (x1 - xx) + (y1 - yy) * (y1 - yy));
  printf("%.16lf %.16lf %.16lf", (x1 + xx) / 2, (y1 + yy) / 2, dis / 2);
}
