#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const int N = 1e6;
const int MD = 1e9 + 7;
void solve() {}
int main() {
  long double r, x1, y1, x2, y2;
  cin >> r >> x2 >> y2 >> x1 >> y1;
  long double dist = sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
  if (dist >= r || fabs(dist - r) < 1e-9) {
    cout << fixed << setprecision(12) << x2 << ' ' << y2 << ' ' << r << '\n';
    return 0;
  }
  long double angle = atan2((y2 - y1), (x2 - x1));
  long double neRed = (r + dist) / 2;
  cout << fixed << setprecision(12) << x1 + neRed * cos(angle) << ' '
       << y1 + neRed * sin(angle) << ' ' << neRed << '\n';
  return 0;
}
