Recurring Sequence In A Fraction

hard
1. You are given two numbers which represent the numerator and denominator of a fraction.
2. You have to convert this fraction into a decimal.
3. If the decimals are repeating recursively, then you have to put the recurring sequence inside a bracket. 

Input Format

A number N1 representing the numerator of a fraction. A number N2 representing the denominator of a fraction.

Output Format

A String representing a decimal number.

Constraints

1 <= N1,N2 <= 2000 

Example

Input
8
4
Output
2
Previous
Pairs With Equal Sum
Next
Rabbits In The Forest

Related Questions