#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair Pr; int N; int main() { cin >> N; int one = N / 2; int seven = 0; if (N % 2 == 0)seven = 0; else { if (N % 2 == 1) { seven++; one--; } } for (int i = 0; i < seven; i++) cout << 7; for (int i = 0; i < one; i++) cout << 1; cout << endl; return 0; }