#include using namespace std; #define step(i, s, n, d) for(int i=s; i> x; #define puts(x) x; cout << x << endl; #define list_input(x, n) x[n]; rep(i,n){ gets(x[i]);} #define ll long long int main(){ int n; string result = ""; cin >> n; if (n%2 == 1) { rep(i, n/2-1){ result += "1"; } result += "7"; }else{ rep(i, n/2){ result += "1"; } } puts(result) }