#include "iostream" using namespace std; int N; int main() { cin >> N; if (N % 2 == 1) { for (int i = 1; i < N / 2-1; i++) { cout << "1"; } cout << "7"; } else { for (int i = 1; i < N / 2; i++) { cout << "1"; } } cout << "\n"; return 0; }