#include <iostream> #include <iomanip> #include <algorithm> #include <string> ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<<endl; ///////// typedef long long LL; typedef long double LD; ///////// using namespace::std; ///////// int L[100000]; int main(void){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed;// //cout << setprecision(7);// //そっちのマッチかーい int N; cin >> N;//[2,10^5] /* 0 6× 1 2 2 5× 3 5× 4 4× 11 5 5× 6 6× 7 3 8 7× 9 6× 1か7を並べる 2本と3本 */ int num = N/2; rep(i,num){ if( i == 0 && N%2 == 1){ cout << "7"; }else{ cout << "1"; } } cout << endl; return 0; }