#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
complex<double> i = -1;
complex<double> v1, v2, v3;
double R, theta, r1, i1, r2, i2;
int main() {
  cin >> R >> r1 >> i1 >> r2 >> i2;
  complex<double> p1(r1, i1), p2(r2, i2);
  v1 = ((p1) - (p2));
  if ((hypot((v1).imag(), (v1).real())) >= R) {
    printf("%.8lf %.8lf %.8lf", p1.real(), p1.imag(), R);
    return 0;
  }
  theta = (atan2((v1).imag(), (v1).real()));
  complex<double> t = polar(R, theta);
  v3 = v1 + t;
  complex<double> ans(v3.real() / 2, v3.imag() / 2);
  printf("%.8lf %.8lf %.8lf", p2.real() + ans.real(), p2.imag() + ans.imag(),
         (hypot((ans).imag(), (ans).real())));
  return 0;
}
