#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
int ar[] = {-1, 1, 0, 0, 1, 1, -1, -1}, ac[] = {0, 0, 1, -1, 1, -1, -1, 1};
int main() {
  double r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  double k = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  if (r - k < 1e-6) return cout << x1 << " " << y1 << " " << r, 0;
  double rem = (double)r + k;
  double dt = k / (rem / 2.0);
  if (!dt) {
    cout << fixed << setprecision(6) << x1 + r / 2 << " " << y1 << " "
         << r / 2.0 << endl;
    return 0;
  }
  double xx1 = ((double)x1 - ((double)1 - dt) * (double)x2) / dt;
  double yy1 = ((double)y1 - ((double)1 - dt) * (double)y2) / dt;
  cout << fixed << setprecision(6) << xx1 << " " << yy1 << " " << rem / 2.0
       << endl;
  ;
  return 0;
}
