#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVI; typedef pair P; typedef pair PL; #define mod 1000000007 ll add(ll x, ll y){ return (x+y)%mod; } ll mul(ll x, ll y){ return (x%mod)*(y%mod)%mod; } ll powll(ll x, ll y){ ll res = 1LL; while(y){ if (y & 1LL) res *= x; res %= mod; x = (x*x) % mod; y >>= 1LL; } return res; } ll divll(ll x, ll y){ return (x * powll(y,mod-2)) % mod; } int main() { ll n; cin >> n; ll ans = divll(powll(100,n) - 1, 99LL); cout << ans << endl; n %= 11; if (n == 0) {cout << 0 << endl; return 0;} ans = 1; REP(i,n-1) ans = 100*ans + 1; cout << ans << endl; return 0; }