SP18963 NR2 - Bhagat The Bit Man
Description
Bhagat is student of CSE at ISM Dhanbad. In mid-semsester exam somehow he was able to score full marks in Boolean algebra. So his profs doubt how can he score full marks. So profs decided to check his ability. They gave Bhagat a list student’s admission number and ask him to find total kaptiness (K) of list.
Kaptiness is defined as or operation on every dukkerness(d $ _{i} $ ) value. Dukkerness value is xor operation on every pair of number in list.As we all know Bhagat is not good in Boolean algebra. Can you help him to prove his profs that he can score full out of full in boolean algebra.
Example:-
If list contain three number 10, 15 & 17.Then there will be total 3 pairs.
d $ _{1} $ = 10 ^ 15 = 5;
d $ _{2} $ = 10 ^ 17 = 27;
d $ _{3} $ = 17 ^ 15 = 30;
k = d $ _{1} $ | d $ _{2} $ | d $ _{3 ;} $
K = 31;
Input Format
First line of input contain **N** (2
Output Format
Output only one line containing **K**.