You are given positive integers a, b, and c. Among all positive integers A, B, and C with A×B=C, find the smallest possible value of ∣A−a∣+∣B−b∣+∣C−c∣.
∣x∣ is the absolute value of x.
Input
The first line contains a, b, and c, separated by spaces. (1≤a,b,c≤109)
Output
Print the minimum value of ∣A−a∣+∣B−b∣+∣C−c∣ on the first line. A, B, and C must all be positive integers with A×B=C.