#include using namespace std; #define fi first #define se second #define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repl(i,0,n) #define each(itr,v) for(auto itr:v) #define pb(s) push_back(s) #define mp(a,b) make_pair(a,b) #define all(x) (x).begin(),(x).end() #define dbg(x) cout<<#x"="<(x).count() typedef long long ll; typedef unsigned long long ull; typedef pair P; typedef pair PPI; typedef pair PL; typedef pair PPL; #define INF INT_MAX/3 #define MAX_N 1000 const ll M=1e9+7; typedef vector vec; typedef vector mat; struct Matrix{ int N; mat a; Matrix(int n){ N=n; a=mat(N,vec(N)); for(int i=0;i0;b>>=1,d=d*d)if(b&1)res=d*res; return res; } Matrix operator+(const Matrix& r) const { Matrix s(N); for(int i=0;i=modl)s[i][j]-=modl; } } for(int j=0;j& operator[](int i){ return a[i]; } }; ll n; int main(){ cin.sync_with_stdio(false); cin>>n; Matrix A(2); A[0][0]=100; A[0][1]=1; A[1][0]=0; A[1][1]=1; A=A.pow(n-1); cout<<(A[0][0]+A[0][1])%M<