Victor completed the solution for the problem and, without waiting for feedback from the team, submitted it to the system.
Upon refreshing the submission page, Victor saw the unpleasant verdict Wrong Answer.
It was unpleasant for two reasons:
His teammates Aidar and Begimai noticed this.
They observed that Victor's solution used two integer variables $$$A$$$ and $$$B$$$, after which the result of their multiplication $$$C = A \cdot B$$$ was computed.
Moreover, all three variables were declared as $$$32$$$-bit.
Both Aidar and Begimai suspected that the program was experiencing integer overflow — a situation where the value of an integer does not fit into the specified data type.
The team could always rewrite it in Python later — right now they wanted to understand what data types should be used for $$$A$$$, $$$B$$$, and $$$C$$$.
Important Information
The first line contains an integer $$$A$$$ $$$(1 \le A \le 10^{18})$$$ — the value of variable $$$A$$$.
The second line contains an integer $$$B$$$ $$$(1 \le B \le 10^{18})$$$ — the value of variable $$$B$$$.
In the first line, output the integer $$$T_A$$$ — the required number of bits for variable $$$A$$$.
In the second line, output the integer $$$T_B$$$ — the required number of bits for variable $$$B$$$.
In the third line, output the integer $$$T_C$$$ — the required number of bits for variable $$$C$$$.
All three numbers $$$T_A, T_B, T_C$$$ can only take values $$$32$$$, $$$64$$$, or $$$128$$$:
20000100000
32 32 32
1000000300000
64 32 64
30000003000000000000
32 64 64
10000000000000000001000000000000000000
128 64 128
A Minute of Useful Information
First test example
All three numbers fit into a $$$32$$$-bit data type.
Second test example
$$$A$$$ and $$$B$$$ fit into a $$$32$$$-bit data type, but $$$C$$$ fits only into a $$$64$$$-bit one.
It is necessary to make either variable $$$A$$$ or $$$B$$$ $$$64$$$-bit.
Third test example
$$$A$$$ fits into a $$$32$$$-bit data type, but $$$B$$$ and $$$C$$$ fit only into a $$$64$$$-bit one.
Since $$$B$$$ is already $$$64$$$-bit, $$$A$$$ can remain $$$32$$$-bit.
Fourth test example
$$$A$$$ and $$$B$$$ fit into a $$$64$$$-bit data type, but $$$C$$$ fits only into a $$$128$$$-bit one.
It is necessary to make either variable $$$A$$$ or $$$B$$$ $$$128$$$-bit.