Problem:
Score : 100 points

Problem Statement

In order to pass the entrance examination tomorrow, Taro has to study for T more hours.

Fortunately, he can leap to World B where time passes X times as fast as it does in our world (World A).

While (X \times t) hours pass in World B, t hours pass in World A.

How many hours will pass in World A while Taro studies for T hours in World B?

Constraints

All values in input are integers.

1 \leq T \leq 100

1 \leq X \leq 100

Input

Input is given from Standard Input in the following format:

T X

Output

Print the number of hours that will pass in World A.

The output will be regarded as correct when its absolute or relative error from the judge's output is at most 10^{-3}.

Sample Input 1

8 3

Sample Output 1

2.6666666667

While Taro studies for eight hours in World B where time passes three times as fast, 2.6666... hours will pass in World A.

Note that an absolute or relative error of at most 10^{-3} is allowed.

Sample Input 2

99 1

Sample Output 2

99.0000000000

Sample Input 3

1 100

Sample Output 3

0.0100000000

Solution in C# (Mono 4.6.2.0) (judge verdict: Runtime Error)

using System;

class quiz
{
    public long solve(long N, long K, long[] A)
    {
        int rank = 0, sum = 0;
        long res = 0, ret = 0;
        bool use0 = false;

        for (int i = 0; Math.Pow(2, i) < K; i++)
        {
            rank = i + 1;
        }

        int[] ans = new int[rank];

        for (int i = rank - 1;  i >= 0; i--)
        {
            sum = 0;

            for (int j = 0; j < N; j++)
            {
                if (((A[i] >> i) & 1) == 1)
                {
                    sum++;
                }
            }

            if (sum > (N / 2))
            {
                ans[i] = 0;
                use0 = true;
            }
            else if(N % 2 == 0 && sum == (N / 2))
            {
                ans[i] = 0;
                use0 = true;
            }
            else
            {
                if(((K>> i)&1) == 1)
                {
                    ans[i] = 1; 
                }
                else if(use0)
                {
                    ans[i] = 1;
                }
                else
                {
                    ans[i] = 0;
                    use0 = true;
                }
            }
        }

        for (int i = 0; i < rank; i++)
        {
            if (ans[i] == 1)
            {
                res += (long)Math.Pow(2, i);
            }
        }

        for (int i = 0; i < N; i++)
        {
            ret += (A[i] ^ res);
        }

        return ret;
    }

    public long[] ParseLongBySpace(string str)
    {
        long[] array = new long[str.Length];
        int lastloc = 0, spaceloc = -1;

        for (int i = 0; i < str.Length; i++)
        {
            if (str[i] == ' ')
            {
                array[lastloc++] = long.Parse(str.Substring(spaceloc + 1, i - spaceloc - 1));
                spaceloc = i;
            }
            else if (i == str.Length - 1)
            {
                array[lastloc++] = long.Parse(str.Substring(spaceloc + 1, i - spaceloc));
            }
        }

        Array.Resize(ref array, lastloc);

        return array;
    }
}

class Example
{
    static void Main()
    {
        quiz ex = new quiz();

        long[] NK = ex.ParseLongBySpace(Console.ReadLine());

        Console.WriteLine(ex.solve(NK[0], NK[1], ex.ParseLongBySpace(Console.ReadLine())));
    }
}