Problem: Fifa and Fafa are sharing a flat. Fifa loves video games and wants to download a new soccer game. Unfortunately, Fafa heavily uses the internet which consumes the quota. Fifa can access the internet through his Wi-Fi access point. This access point can be accessed within a range of r meters (this range can be chosen by Fifa) from its position. Fifa must put the access point inside the flat which has a circular shape of radius R. Fifa wants to minimize the area that is not covered by the access point inside the flat without letting Fafa or anyone outside the flat to get access to the internet.

The world is represented as an infinite 2D plane. The flat is centered at (x1, y1) and has radius R and Fafa's laptop is located at (x2, y2), not necessarily inside the flat. Find the position and the radius chosen by Fifa for his access point which minimizes the uncovered area.

Input

The single line of the input contains 5 space-separated integers R, x1, y1, x2, y2 (1 ≤ R ≤ 105, |x1|, |y1|, |x2|, |y2| ≤ 105).

Output

Print three space-separated numbers xap, yap, r where (xap, yap) is the position which Fifa chose for the access point and r is the radius of its range. 

Your answer will be considered correct if the radius does not differ from optimal more than 10 - 6 absolutely or relatively, and also the radius you printed can be changed by no more than 10 - 6 (absolutely or relatively) in such a way that all points outside the flat and Fafa's laptop position are outside circle of the access point range.

Examples

Input

5 3 3 1 1


Output

3.7677669529663684 3.7677669529663684 3.914213562373095


Input

10 5 5 5 15


Output

5.0 5.0 10.0

Solution (in JAVA):

Solution:
import java.io.*;
import java.math.BigInteger;
import java.text.DecimalFormat;
import java.util.*;

public class Solution
{
    public static void main(String[] args)
    {
        MyScanner sc = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        //--------Solution-------------------------------------------------------//
        /*int R=sc.nextInt();
        int x1=sc.nextInt();
        int y1=sc.nextInt();
        int x2=sc.nextInt();
        int y2=sc.nextInt();*/

        long R=sc.nextLong();
        long x1=sc.nextLong();
        long y1=sc.nextLong();
        long x2=sc.nextLong();
        long y2=sc.nextLong();

        double xa,ya,r;

        double p = Math.pow(x1-x2,2) + Math.pow(y1-y2,2);

        if(p>=R*R){
            xa = x1;
            ya = y1;
            r = R;
        }

        else if(x1==x2 && y1==y2){
            xa = x1 + ((double)R)/2;
            ya = y1;
            r = ((double)R)/2;
        }

        else{
            double k = Math.sqrt(p);
            double xe,ye;

            xe = (x1*(k+R) - R*x2)/k;
            ye = (y1*(k+R) - R*y2)/k;

            xa = (x2+xe)/2;
            ya = (y2+ye)/2;
            r = Math.sqrt(Math.pow(x2-xe,2)+Math.pow(y2-ye,2))/2;
        }

        out.println(xa+" "+ya+" "+r);
        //-----------------------------------------------------------------------//

        out.close();
    }

    //-----------Helper Functions------------------------------------------------//
    static int[] readIntArray(MyScanner sc,int n){
        int[] a = new int[n];
        for(int i=0;i<n;i++) a[i]= sc.nextInt();
        return a;
    }

    static long[] readLongArray(MyScanner sc,int n){
        long[] a = new long[n];
        for(int i=0;i<n;i++) a[i]=sc.nextLong();
        return a;
    }

    static int[] toIntArray(String s){
        int[] a = new int[s.length()];
        for(int i=0;i<s.length();i++) a[i]=s.charAt(i)-'0';
        return a;
    }

    static long mod(long a){
        long M=(long)1e9+7;
        return (a%M + M) % M;
    }

    static int gcd(int a,int b){
        while(b!=0){
            int r=a%b;
            a=b;
            b=r;
        }
        return a;
    }

    static long exp(long base,int exp){
        long M=(long)1e9+7;
        long res=1L;

        while(exp>0){
            if(exp%2==1) res = (res*base)%M;
            base = (base*base)%M;
            exp /= 2;
        }

        return res;
    }

    static int floor(int[] a,int i){
        int lo=0,hi=a.length-1;
        int ans=-1;

        while(lo<=hi){
            int mid = lo + (hi-lo)/2;
            if(a[mid]==i){ans=mid; break;}
            else if(a[mid]<i){ans=mid; lo=mid+1;}
            else{hi=mid-1;}
        }

        return ans;
    }

    static boolean nextPermutation(int[] a){
        int i = a.length - 1;
        while(i>0 && a[i-1]>=a[i]) i--;

        if(i==0) return false;

        int j = a.length - 1;
        while(a[j]<=a[i-1]) j--;

        int temp = a[i-1];
        a[i-1]=a[j];
        a[j]=temp;

        j = a.length - 1;
        while(i<j){
            temp = a[i];
            a[i] = a[j];
            a[j] = temp;
            i++; j--;
        }
        return true;
    }

    static boolean nextPermutation(char[] a){
        int i = a.length - 1;
        while(i>0 && a[i-1]>=a[i]) i--;

        if(i==0) return false;

        int j = a.length - 1;
        while(a[j]<=a[i-1]) j--;

        char temp = a[i-1];
        a[i-1]=a[j];
        a[j]=temp;

        j = a.length - 1;
        while(i<j){
            temp = a[i];
            a[i] = a[j];
            a[j] = temp;
            i++; j--;
        }
        return true;
    }

    static long max_subarray(long[] a){
        long lmax = a[0], gmax=a[0];

        for(int i=1; i<a.length; i++){
            lmax = Math.max(a[i],lmax+a[i]);
            gmax = Math.max(lmax,gmax);
        }
        return gmax;
    }

    //-----------PrintWriter for faster output-----------------------------------//
    public static PrintWriter out;

    //-----------MyScanner class for faster input--------------------------------//
    public static class MyScanner
    {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt(){
            return Integer.parseInt(next());
        }

        long nextLong(){
            return Long.parseLong(next());
        }

        double nextDouble(){
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
}


//-----------------------Helper Classes------------------------------------------//
class Pair<A extends Comparable<A>,B> implements Comparable<Pair<A,B>>
{
    A first;
    B second;

    Pair(A f,B s){
        first=f;
        second=s;
    }

    public int compareTo(Pair<A,B> p){
        return this.first.compareTo(p.first);
    }
}