#include using namespace std; typedef long long ll; ll modpow(ll x, ll n, ll mod) { ll res = 1; while (n > 0) { if (n & 1) res = res * x % mod; x = x * x % mod; n >>= 1; } return res; } int main() { cin.tie(0); ios::sync_with_stdio(false); ll n; cin >> n; ll m1 = 1000000007; cout << (modpow(100, n, m1) + m1 - 1) % m1 * modpow(99, m1 - 2, m1) % m1 << endl; if (n % 11 == 0) { cout << 0 << endl; return 0; } string ans = ""; for (int i = 1; i < n % 11; i++) ans += "10"; ans += "1"; cout << ans << endl; return 0; }