#include #define REP(i,b,e) for(int i=b;i que; REP(i, 0, n){ int a; scanf("%d", &a); que.push(a); } ll ans = 0; REP(i, 0, 20){ REP(j, 0, 1<