#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 { switch (n % 3) { case 0: REP(i, n / 3) cout << 7; break; case 1: REP(i, n / 3 - 1) cout << 7; cout << 11; break; case 2: REP(i, n / 3) cout << 7; cout << 1; break; } } cout << endl; return 0; }