#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; i++) int main() { cin.tie(nullptr); int N; cin >> N; if (N % 2 == 0) { rep(i, 0, N / 2) cout << 1; } else { cout << 7; rep(i, 0, N / 2 - 1) cout << 1; } cout << '\n'; }