#include #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; uint32_t x = 0, y = 1, z = 2, w = 3; uint32_t generate() { uint32_t t = (x^(x<<11)); x = y; y = z; z = w; w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)); return w; } int main(void) { int64_t seed; cin >> seed; uint64_t l=0,r=UINT_MAX; while(r-l>1){ uint64_t t=(l+r)/2; int cnt=0; x=seed;y=1;z=2;w=3; for(int i=0;i<10000001;i++){ if(generate()