#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-6;
const double PI = acos(-1.0);
const long long mod = 1e18;
const int maxn = 100000 + 5;
const int N = 10000 + 5;
double dis(double x1, double y1, double x2, double y2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
int main() {
  double R, x1, y1, x2, y2;
  scanf("%lf%lf%lf%lf%lf", &R, &x1, &y1, &x2, &y2);
  double d = dis(x1, y1, x2, y2);
  double x = x1, y = y1;
  double r = (d + R) / 2;
  if (d == 0) {
    x = x1 + r;
    y = y1;
    printf("%lf %lf %lf\n", x, y, r);
    return 0;
  }
  x = r * (x1 - x2) / d + x2;
  if (x1 != x2)
    y = (x - x2) * (y1 - y2) / (x1 - x2) + y2;
  else {
    if (y2 > y1)
      y = y2 - r;
    else
      y = y2 + r;
  }
  if (d - R >= eps)
    printf("%lf %lf %lf\n", x1, y1, R);
  else {
    printf("%lf %lf %lf\n", x, y, r);
  }
  return 0;
}
