#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define syosu(x) fixed< P; typedef pair pdd; typedef pair pll; typedef vector vi; typedef vector vvi; typedef vector vd; typedef vector vvd; typedef vector vl; typedef vector vvl; typedef vector vc; typedef vector vvc; typedef vector vs; typedef vector vb; typedef vector vvb; typedef vector

vp; typedef vector vvp; typedef vector vpll; typedef pair pip; typedef vector vip; const int inf=1<<30; const ll INF=1ll<<57; const double pi=acos(-1); const double eps=1e-6; const ll mod=1e9+7; const int dx[4]={0,1,0,-1},dy[4]={1,0,-1,-0}; const int DX[8]={-1,-1,-1,0,1,1,1,0},DY[8]={1,0,-1,-1,-1,0,1,1}; vvl mul(vvl A,vvl B){ vvl C(A.size(),vl(B[0].size())); for(int i=0;i0){ if(n&1) B=mul(B,A); A=mul(A,A); n>>=1; } return B; } ll n; int main(){ cin>>n; vvl a(2,vl(2)),b(2,vl(1)); a[0][0]=100;a[0][1]=1; a[1][0]=0;a[1][1]=1; a=pow(a,n-1); cout<<(a[0][0]+a[0][1])%mod<