#include #define rep(i,n) for(int i = 0; i < n; i++) #define INF 100000000 using namespace std; int n; int main(){ cin >> n; if(n%2){ cout << 7; rep(i,(n-3)/2) cout << 1; cout << endl; } else{ rep(i,n/2) cout << 1; cout << endl; } }