#include <bits/stdc++.h>
using namespace std;
int main() {
  double R, x1, y1, x2, y2;
  double r1, r2;
  cin >> R >> x1 >> y1 >> x2 >> y2;
  double dis = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  r1 = (double)((R + dis) / (double)2.0);
  r2 = r1 - dis;
  if (dis == 0.0) {
    printf("%.10lf %.10lf %.10lf\n", x1 + r1, y1, r1);
    return 0;
  }
  if (dis >= R) {
    printf("%.10lf %.10lf %.10lf\n", x1, y1, R);
    return 0;
  }
  double xa = double(r2 * x2 - r1 * x1) / (double)(r2 - r1);
  double ya = double(r2 * y2 - r1 * y1) / (double)(r2 - r1);
  printf("%.10lf %.10lf %.10lf\n", xa, ya, r1);
  return 0;
}
