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