#include #include #include #include #include //--------------------------- using namespace std; //--------------------------- #define REP(i,n) for(int i = 0; i < (n); i++) #define P(x) cout << (x) << "\n" //--------------------------- int main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); int n;cin>>n; string s; if (n%2 == 0) { REP(i,n/2){s[i]= '1';} }else{ s[0] = '7'; for (int i = 1; i < (n-1)/2 - 1; i++) { s[i] = '1'; } } long long a = stoll(s); P(a); return 0; }