#include <bits/stdc++.h>
using namespace std;
double r, X1, X2, Y1, Y2;
double dis(double X1, double Y1, double X2, double Y2) {
  return sqrt((X1 - X2) * (X1 - X2) + (Y1 - Y2) * (Y1 - Y2));
}
int main() {
  cin >> r >> X1 >> Y1 >> X2 >> Y2;
  double len = dis(X1, Y1, X2, Y2);
  if (len >= r)
    printf("%.10lf %.10lf %.10lf\n", X1, Y1, r);
  else if (X1 == X2 && Y1 == Y2)
    printf("%.10lf %.10lf %.10lf\n", X1 + r / 2, Y1, r / 2);
  else {
    double z = len;
    double R = (z + r) / 2;
    printf("%.10lf %.10lf %.10lf\n", (X1 - X2) * R / z + X2,
           (Y1 - Y2) * R / z + Y2, R);
  }
  return 0;
}
