#include <bits/stdc++.h>
using namespace std;
int const MaxSize = 1000 + 10;
double R, x1, yy1, x2, y2;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> R >> x1 >> yy1 >> x2 >> y2;
  double dx = x1 - x2;
  double dy = yy1 - y2;
  double d2 = dx * dx;
  d2 += dy * dy;
  double r2 = R * R;
  cout << setprecision(15);
  if (d2 > r2) {
    cout << x1 << " " << yy1 << " " << R;
    return 0;
  }
  if (d2 == 0) {
    cout << x2 + R / (2.0) << " " << y2 << " " << R / (2.0) - 1e-8;
    return 0;
  }
  double newR = (sqrt(d2) + R) / (2.0);
  double xratio = dx / sqrt(d2);
  double yratio = dy / sqrt(d2);
  cout << x2 + newR * xratio << " " << y2 + newR * yratio << " " << newR - 1e-8;
  return 0;
}
