#include using namespace std; typedef long long ll; int v[] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6}; int main() { int N; cin >> N; if (N % 2 == 0) { for (int i = 0; i < N / 2; i++) cout << 1; cout << endl; } else { cout << 7; for (int i = 0; i < (N - 3) / 2; i++) cout << 1; cout << endl; } }