#pragma target("popcnt") #pragma GCC optimize("O3") #include using namespace std; typedef long long ll; typedef string str; typedef pair pii; #define F first #define S second #define pb push_back #define pq priority_queue #define all(x) (x).begin(),(x).end() #define bug(x) cerr << (x) << ' ' #define debug(x) cerr << #x << " = " << x << '\n' #define yn(x) cout << (x==1?"Yes\n":"No\n") #define PI 3.14159265358979323 #define Ststone ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0) const ll max_n=1e5+10,max_int=2147483647,mod1=1e9+7,mod2=998244353; ll t,n,m,h,w,a,b,c,d,q; long long ans=0; vector v,v1,v2; //str s1,s2,s; set s1,s2,ss; deque de; void solve(){ cin >> n; for(ll i=0;i> a; v.pb(a); } ll ans = 0; for(ll i=0;i<30;i++){ de.clear(); for(ll j=0;j> t; t = 1; while(t--){ solve(); } } /* */