#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimization("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
using namespace std;
int main() {
  long double r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  long double x = sqrt((y1 - y2) * (y1 - y2) + (x1 - x2) * (x1 - x2));
  if (x - r >= 0)
    cout << fixed << setprecision(10) << x1 << " " << y1 << " " << r;
  else {
    if (x == 0) {
      cout << x1 - r / 2 << " " << y1 << " " << r / 2;
      return 0;
    }
    x1 = x1 + ((x - r) / 2) * (x2 - x1) / x;
    y1 = y1 + ((x - r) / 2) * (y2 - y1) / x;
    cout << fixed << setprecision(10) << x1 << " " << y1 << " "
         << r - (r - x) / 2;
  }
  return 0;
}
