#include #include #include #include #include #include #include #define rep(i, a) FOR(i, 0, a) #define FOR(i, a, b) for(int i = a; i < b; ++i) typedef long long ll; typedef unsigned long long ull; typedef std::pair P; int main(){ int n; std::cin >> n; if (n == 2)std::cout << "1" << std::endl; else if (n == 3)std::cout << 7 << std::endl; else { std::string str; rep(i, n / 4)str += "11"; if (n % 4 != 0)str.pop_back(), str += "7"; std::cout << str << std::endl; } return 0; }