#include #define For(i, a, b) for(long long i = a; i < b; i++) #define rep(i, n) For(i, 0, n) #define rFor(i, a, b) for(long long i = a; i >= b; i--) #define ALL(v) (v).begin(), (v).end() #define rALL(v) (v).rbegin(), (v).rend() using namespace std; using lint = long long; using ld = long double; int main() { int n; cin >> n; int q = n / 2; if (n % 2 == 0) { rep(i, q) { cout << 1; } cout << endl; } else { cout << 7; rep(i, q - 1) { cout << 1; } cout << endl; } }