const m=1e9+7,s=1e9/6+2,a[]={1,674113094,419519121,5e8+3,255987028,844308531};long n,x;main(i){scanf("%ld",&n);for(n