#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, cx, cy, px, py, x, y;
  scanf("%lf%lf%lf%lf%lf", &r, &cx, &cy, &px, &py);
  double l = (cx - px) * (cx - px) + (cy - py) * (cy - py);
  l = sqrt(l);
  if (l <= r) {
    r = (r + l) / 2;
    if (l == 0) {
      x = cx + r;
      y = cy;
    } else {
      x = r / l * (cx - px) + px;
      y = r / l * (cy - py) + py;
    }
  } else {
    x = cx;
    y = cy;
  }
  printf("%.12lf %.12lf %.12lf\n", x, y, r);
}
