#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  double r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  cout << fixed << setprecision(10);
  double dis = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  if (dis >= r) {
    cout << x1 << " " << y1 << " " << r << "\n";
    return 0;
  } else if (x1 == x2 and y1 == y2) {
    double R = r / 2;
    double x = x1 + R;
    double y = y1;
    cout << x << " " << y << " " << R << "\n";
    return 0;
  } else {
    double R = (dis + r) / 2.0;
    double x = (R * (x1 - x2)) / dis + x2;
    double y = (R * (y1 - y2)) / dis + y2;
    cout << x << " " << y << " " << R << "\n";
  }
  return 0;
}
