#include using namespace std; int main(){ int n; cin >> n; while(n > 1){ if(n % 2 == 0){ n -= 2; cout << 1; } else{ n -= 3; cout << 7; } } cout << endl; return 0; }