#include #define rep(i,n) for(int i=0;i<(n);++i) #define ALL(A) A.begin(), A.end() using namespace std; typedef long long ll; typedef pair P; // 各数における、使うマッチの本数 const int matching[10] = { 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 }; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int N; cin >> N; if (N % 2 == 0){ rep (i, N/2) cout << 1; cout << endl; }else{ cout << 7; for (int i = 1; i < (N-1)/2; ++i) cout << 1; cout << endl; } // end if return 0; }