#include <bits/stdc++.h>
using namespace std;
using ld = long double;
using pt = complex<ld>;
const ld eps = 1e-9;
int main() {
  ios::sync_with_stdio(false), cin.tie(nullptr);
  long long r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  pt c(x1, y1);
  pt f(x2, y2);
  cout << fixed << setprecision(16);
  if (norm(c - f) > r * r) {
    cout << c.real() << " " << c.imag() << " " << r << '\n';
    return 0;
  }
  if (abs(c - f) < eps) {
    cout << c.real() + r / 2.0 << " " << c.imag() << " " << r / 2.0 << '\n';
    return 0;
  }
  pt dir = (c - f) / abs(c - f);
  pt p = f + dir * ((abs(c - f) + r) / 2);
  cout << p.real() << " " << p.imag() << " " << abs(p - f) << '\n';
  return 0;
}
