Appu is bit confused in competetive programming as which topics he have to study to maximise his programming knowledge. As there are N subjects and ith subject has value ai. His knowledge is equal to bitwise '&' of the values of subjects he choose to study .So he has to choose a subsequence from it and find the bitwise '&' of all the subjects he want to study to maximise his knowledge .
Input format
Output format
Print two space saperated integers the maximum knowledge and the maximum optimal subsequence size.
Constraints
1≤N≤105
1≤ai≤1018