The terminals of an electrical circuit are numbered with natural numbers from to , inclusive. These terminals are interconnected by resistors, each having a resistance measured in ohms, represented as a non-negative rational number.
Your task is to write a program that calculates the resistance between terminals and .
The input begins with two natural numbers, and (1 \le n, m \le 2500). This is followed by sets of four non-negative integers: two terminal numbers, and the numerator and denominator of the resistance value in ohms that connects these terminals.
The output should be the resistance in ohms as an irreducible fraction. If the denominator of this fraction is , omit the fraction line / and the denominator. If there is no path of resistors connecting terminals and , output "Zero conductivity".
Example 1