#include <bits/stdc++.h>
using namespace std;
#pragma warning(disable : 4996)
#pragma comment(linker, "/STACK:336777216")
const int sqrtn = 300;
const int inf = 987654321;
const int sz = 1e4 + 5;
const int mod = 1e9 + 7;
double R, X1, Y1, X2, Y2;
int main() {
  cin >> R >> X1 >> Y1 >> X2 >> Y2;
  double d = sqrt((X1 - X2) * (X1 - X2) + (Y1 - Y2) * (Y1 - Y2));
  if (d < 1e-9)
    printf("%.10f %.10f %.10f\n", X1, Y1 + R / 2, R / 2);
  else if (R <= d)
    printf("%.10f %.10f %.10f\n", X1, Y1, R);
  else {
    double r = (R + d) / 2;
    double x = X2 + (X1 - X2) * r / d;
    double y = Y2 + (Y1 - Y2) * r / d;
    printf("%.10f %.10f %.10f\n", x, y, r);
  }
  return 0;
}
