#include using namespace std; int main() { int n; cin >> n; while (n >= 2) { if (n == 3) { cout << 7; break; } cout << 1; n -= 2; } cout << endl; }