#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#define ALLOF(c) (c).begin(), (c).end()
typedef long long ll;
typedef unsigned long long ull;

static const ll MOD = 1000000007LL;

ll dp[10][1000005];

int main(){
  int N;
  cin >> N;

  dp[0][0] = 1;
  rep(i,N){
    rep(j,10){
      REP(k,j,10){
        dp[k][i+1] += dp[j][i];
        dp[k][i+1] %= MOD;
      }
    }
  }

  ll ret = 0;
  rep(i,10){
    ret += dp[i][N];
    ret %= MOD;
  }

  cout << ret << endl;
  
  return 0;
}