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