#include typedef uint64_t u64; typedef int64_t i64; using namespace std; template void scan_(vector& a){ for(auto& v:a){ cin>>v; } } template void scan_(T& a){ cin>>a; } void scan(){} template void scan(T& n,Args&... args){ scan_(n),scan(args...); } template void println(T n){ cout< void println(T n,Args... args){ cout< void println(vector v){ for(size_t i=0;i struct modint{ u64 val; modint(i64 val_=0):val((val_%i64(mod)+i64(mod))%i64(mod)){} modint operator-(){ return (val==0)?0:mod-val; } modint operator+(modint rhs){ return modint(*this)+=rhs; } modint operator-(modint rhs){ return modint(*this)-=rhs; } modint operator*(modint rhs){ return modint(*this)*=rhs; } modint operator/(modint rhs){ return modint(*this)/=rhs; } modint operator^(i64 rhs){ return modint(*this)^=rhs; } modint &operator+=(modint rhs){ val+=rhs.val,val-=((val>=mod)?mod:0); return (*this); } modint &operator-=(modint rhs){ val+=((val>=1; } return (*this)=res; } bool operator==(modint rhs){ return val==rhs.val; } bool operator!=(modint rhs){ return val!=rhs.val; } friend std::ostream &operator<<(std::ostream& os,modint x){ return os<<(x.val); } friend std::istream &operator>>(std::istream& is,modint& x){ u64 t; is>>t,x=t; return is; } }; int main(){ constexpr u64 mod=1000000007; typedef modint mint; int N; scan(N); if(N<4){ println(0); return 0; } vector> dp(N+1,vector (16)); for(int j=0;j<16;++j){ dp[4][j]=1; } for(int i=4;i