#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; if (n % 2 == 0) { REP(i, n / 2) cout << 1; } else { cout << 7; REP(i, (n - 3) / 2) cout << 1; } cout << endl; return 0; }