#include #define rep(i,n) for(li i=0;i<(n);i++) #define red(i,n) for(li i=(n)-1;i>=0;i--) #define all(a) begin(a),end(a) #define pb(a) push_back(a) #define fi first #define se second using namespace std; using li = long long; using ul = unsigned long long; using vi = vector
  • ; using vs = vector; inline ul gcd(ul a,ul b) { return b?gcd(b,a%b):a; } const int INF=1000000009; int main() { int n; cin>>n; cout<<(n%2?7:1); n/=2; rep(i,n-1)cout<<1; cout<