#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
int main() {
  ios::sync_with_stdio(false);
  cout << setiosflags(ios::fixed) << setprecision(8);
  long long R, x1, y1, x2, y2;
  cin >> R >> x1 >> y1 >> x2 >> y2;
  double d = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
  if (d <= R && d >= eps) {
    double x3 = x1 - 1.0 * R / d * (x2 - x1);
    double y3 = y1 - 1.0 * R / d * (y2 - y1);
    cout << 1.0 * (x2 + x3) / 2 << " " << 1.0 * (y2 + y3) / 2 << " "
         << 1.0 * (R + d) / 2;
  } else if (abs(d) <= eps) {
    cout << x1 - 1.0 * R / 2 << " " << y1 << " " << 1.0 * R / 2;
  } else {
    cout << x1 << " " << y1 << " " << R;
  }
  return 0;
}
