#include using namespace std; int main(void) { int N; cin >> N; string S(N / 2, '1'); if(N % 2 == 1) S[0] = '7'; cout << S << "\n"; return 0; }