#include #define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++) const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; string s; while (N > 3) { N -= 2; s += "1"; } if (N == 3) s = "7"+s; if (N == 2) s += "1"; cout << s << endl; return 0; }