#include <vector> #include <string> #include <algorithm> #include <numeric> #include <iostream> #include <fstream> #include <queue> #include <cstring> using namespace std; using ll = long long; using ull = unsigned long long; using P = pair<ll,ll>; int main() { int n; cin >> n; if(n & 1) { n-= 3; cout << 7; for(int i = n; i >0; i-=2) cout << 1; } else { for(int i = n; i >0; i-=2) cout << 1; } cout << endl; }