#include using namespace std; typedef long long ll; typedef pair P; const int INF = 1e9; const int mod = 1e9+7; const double EPS = 1e-10; const double PI = acos(-1.0); int main() { ll n; cin >> n; ll res = 1; /*for(int i = 1; i <= n; i++){ ll base = 1; for(int j = 0; j < i; j++){ base *= 10; base += 3; base %= mod; } cout << base << endl; }*/ for(int i = 0; i < n; i++){ res *= 10; res += 3; res %= mod; } cout <