#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace atcoder; using Graph = vector>; using ll = long long; typedef pair P_ll; typedef pair P; const ll INF_ll = 1e17; const int INF = 1e8; template bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; } template using min_priority_queue = priority_queue, greater>; int main() { ll N; cin >> N; // if (N == 3) { // cout << 7 << endl; // return 0; // } if (N % 2 == 0) { string ans(N / 2, '1'); cout << ans << endl; } else { string ans((N - 3) / 2, '1'); cout << 7 << ans << endl; } return 0; }