You are given a chemical equation of the following format:
\((b1) C_x + (b2) H_y\ -------->\ (b3) C_p H_q\)
Your task is to calculate the balancing factor b1, b2, and b3 such that the number of atoms of each of the elements is equal on both sides.
Note: The answer must be in a reduced form.
Input format
The first line consists of four integers x, y, p, and q.
Output format
The output must contain b1, b2, and b3.
Constraints
\(1 \le x \le 10^4\\ 1 \le y \le 10^4\\ 1 \le p \le 10^4\\ 1 \le q \le 10^4\)
Given chemical equation is :
C_{2} + H_{3}_{ }--------> C_{4}_{ }H_{5}
The balanced chemical equation is:
6 C_{2} + 5 H_{3}_{ }--------> 3 C_{4}_{ }H_{5}