#include <bits/stdc++.h>
using namespace std;
int main() {
  double R, x1, y1, x2, y2;
  cin >> R >> x1 >> y1 >> x2 >> y2;
  double q = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  double req = (R + q) / 2;
  if (req - R > 1e-9) {
    printf("%0.9f %.9f %.9f\n", x1, y1, R);
    return 0;
  } else if (x1 == x2 && y1 == y2) {
    printf("%0.9f %.9f %.9f\n", x1 + R / 2.0, y1, R / 2.0);
    return 0;
  } else {
    double m = req, n = req - q;
    double x = (x2 * n - x1 * m) / (n - m), y = (y2 * n - y1 * m) / (n - m);
    printf("%0.9f %.9f %.9f\n", x, y, req);
  }
  return 0;
}
