#include using namespace std; int main() { int n; while (cin>>n) { int c=0; while (n>3) { ++c; n-=2; } cout<<(n==3?7:1); while (c--) cout<<1; cout<