#include using namespace std; int main() { int n; cin >> n; int one = n / 2; int seven = n % 2; if (seven) one--; cout << (seven ? "7" : "") << string(one, '1') << endl; return 0; }