#include using namespace std; int main() { int n; cin >> n; cout << (n % 2 == 0 ? 1 : 7); for (int i = 1; i < n / 2; ++i) cout << 1; cout << endl; return 0; }