#include #pragma GCC optimize("Ofast") using namespace std; using std::cout; using std::cin; using std::endl; using ll=long long; using ld=long double; ll ILL=2167167167167167167; const int INF=2100000000; const ll mod=1e9+7; #define rep(i,a) for (int i=0;i using _pq = priority_queue, greater>; template ll LB(vector &v,T a){return lower_bound(v.begin(),v.end(),a)-v.begin();} template ll UB(vector &v,T a){return upper_bound(v.begin(),v.end(),a)-v.begin();} template bool chmin(T &a,const T &b){if(a>b){a=b;return 1;}else return 0;} template bool chmax(T &a,const T &b){if(a void So(vector &v) {sort(v.begin(),v.end());} template void Sore(vector &v) {sort(v.begin(),v.end(),[](T x,T y){return x>y;});} void yneos(bool a){if(a) cout<<"Yes\n"; else cout<<"No\n";} template void vec_out(vector &p){for(int i=0;i<(int)(p.size());i++){if(i) cout<<" ";cout< T min(vector &a){assert(!a.empty());T ans=a[0];for(auto &x:a) chmin(ans,x);return ans;} template T max(vector &a){assert(!a.empty());T ans=a[0];for(auto &x:a) chmax(ans,x);return ans;} //https://ei1333.github.io/library/other/xor-shift.cpp.html struct XorShift { private: constexpr static double R = 1.0 / 0xffffffff; uint64_t x; public: explicit XorShift(uint64_t seed = 88172645463325252ull) : x(seed) {} template< typename T = uint64_t > inline T get() { // [0, 2^64) x ^= x << 7ull; x ^= x >> 9ull; return x; } inline uint32_t get(uint32_t r) { // [0, r) return ((uint64_t) get< uint32_t >() * r) >> 32ull; } inline uint32_t get(uint32_t l, uint32_t r) { // [l, r) return l + get(r - l); } inline double probability() { // [0.0, 1.0] return get< uint32_t >() * R; } }; template void shuffle_vector(vector &p,XorShift &table){ int L=p.size(); for(int i=0;i>t; rep(i,t) solve(); } void solve(){ XorShift table(167); rep(i,50){ int B=table.get(10000000,100000000); int M=table.get(9000000,B); int E=table.get((B-M)/4,B-M+10); cout<