#include #include #include #include #include #include #include #include #include #include #include #include #define MOD 1000000007LL using namespace std; typedef long long int ll; typedef pair P; long long int powmod(long long int a, long long int k, long long int m){ if(a==0){ return 0; } long long int apow[35]; for(int i=0; i<35; i++){ if(i==0){ apow[i]=a; }else{ apow[i]=apow[i-1]*apow[i-1]%m; } } long long int ans=1; for(int i=34; i>=0; i--){ if(k>=(1ll<=0; i--){ if(k>=(1ll<>n; ll iv2=500000004; P p1=pow5(iv2, iv2, n), p2=pow5(iv2, MOD-iv2, n); ll f1=(p1.second-p2.second+MOD)%MOD; P p3=pow5(iv2, iv2, n+1), p4=pow5(iv2, MOD-iv2, n+1); ll f2=(p3.second-p4.second+MOD)%MOD; cout<