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