#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
ll two[61];

string binary(ll bina){
    ll ans = 0;
    for (ll i = 0; bina>0 ; i++)
    {
        ans = ans+(bina%2)*pow(10,i);
        bina = bina/2;
    }
	string s = to_string(ans);
    return s;
}

int main(){
  for(ll i = 0;i<61;i++){
    two[i] = 0;
  }
  ll N;
  cin>>N;
  ll kazu[N];
  for(ll i = 0;i<N;i++){
    cin>>kazu[i];
  }
  for(ll i = 0;i<N;i++){
    string tow = binary(kazu[i]);
    for(ll k = tow.size()-1;k>=0;k--){
      if(tow.at(k) == '1'){
        two[k]++;
      }
    }
  }
  