#include "bits/stdc++.h" using namespace std; using ll = long long; using ld = long double; using P = pair; constexpr ld EPS = 1e-12; constexpr int INF = numeric_limits::max() / 2; constexpr int MOD = 1e9 + 7; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; string res = ""; if (n % 2) { res += '7'; for (int i = 0; i < (n - 3) / 2; i++) res += '1'; } else { for (int i = 0; i < n / 2; i++) res += '1'; } cout << res << endl; }