#include using namespace std; int main() { int N; cin >> N; int num; num = pow(10,N); for(int i = N - 1; i >= 0; i--){ num = num + 3 * pow(10, i); } double ans = num % 1000000007; if(ans != 0 && num > 1000000007){ cout << ans; } else if(ans != 0 && num < 1000000007){ cout << num; } else{} }