Goal
Given an input integer N, you must output 1/N in decimal form, with brackets () around any part of the fraction that repeats indefinitely.
Example
4 → 0.25
7 → 0.(142857)
Input
A single line containing an integer N
Output
A single line containing the recurring simplified decimal of 1/N