#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string ans = ""; if (n % 2 == 0) { while (n >= 2) { ans += "1"; n -= 2; } cout << ans << endl; } else { while (n >= 5) { ans += "1"; n -= 2; } ans += "7"; cout << ans << endl; } return 0; }