#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; int main() { int N; cin >> N; string ans = ""; while(N > 0){ if(N == 3){ ans += "7"; N -= 3; }else{ ans += "1"; N -= 2; } } reverse(ans.begin(), ans.end()); cout << ans << endl; }