#include using namespace std; typedef unsigned long long ul; typedef signed long long ll; ul over = 1000000007; int main(void) { cin.tie(0); ios::sync_with_stdio(false); cout << fixed; ll n; cin >> n; cout << (n%2==1 ? 7 : 1); n /= 2; n--; for (ll i = 0; i < n; ++i) cout << 1; cout << endl; return 0; }