#include #define rep(i, a, n) for(int i = a; i < n; i++) #define repp(i, n) rep(i, 0, n) #define repb(i, a, b) for(int i = a; i >= b; i--) #define all(a) a.begin(), a.end() #define int long long using namespace std; signed main(){ int n; cin >> n; string ans = ""; if(n % 2) ans += '7'; rep(i, 0, n / 2 - 1){ ans += '1'; } if(n % 2 == 0) ans += '1'; cout << ans << endl; }