#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) int N; signed main() { cin >> N; if (N % 2 == 1) { cout << 7; N -= 3; } while(N > 1) { cout << 1; N -= 2; } cout << endl; return 0; }