#include <bits/stdc++.h>
using namespace std;
int main() {
  long double r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  cout << fixed << setprecision(16);
  long double t = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  if (t >= r)
    cout << x1 << ' ' << y1 << ' ' << r;
  else if (t == 0)
    cout << r / 2 + x1 << ' ' << y1 << ' ' << r / 2;
  else
    cout << x2 + (x1 - x2) * ((r + t) / 2) / t << ' '
         << y2 + (y1 - y2) * ((r + t) / 2) / t << ' ' << (r + t) / 2;
  return 0;
}
