Warm-up Equation
The brain is also a muscle, and it cannot be used without a warm-up, so we offer you a warm-up task (even without any legend).
You are given three integers , and , and the equation system:
Here, means bitwise OR operation.
Firstly, you need to calculate the number of non negative roots for this equation system. In other words, you need to find the number of distinct pairs , such that and . Please note that and are considered as distinct pairs (if ).
Secondly, you need to find the smallest possible distance between and (i.e., the smallest possible value of among all the roots) or if there are no roots.
If , then you have to output just the first answer. Otherwise, you need to output both answers.
Input
The first and only line contains three integers
Output
In the first line, output the number of positive roots for this equation system.
If , then in the second line output the smallest distance between and , or if no solution exists. Otherwise, do not output anything in the second line.
Examples
Scoring
( points): ;
( points): ;
( points): ;
( points): ;
( points): ;
( points): ;
( points): no additional constraints.