#include using namespace std; int main(void) { int n; cin >> n; int seven = n & 1, one = (n - (seven ? 3 : 0)) / 2; if (seven) cout << "7"; for (int i = 0; i < one; i++) { cout << "1"; } cout << endl; return 0; }