#include //#include"atcoder/all" #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #define all(a) (a).begin(),(a).end() using namespace std; //using namespace atcoder; int main(){ //1->2,7->3 int N;cin >> N; if(N%2) cout << string(N/2-1,'1') << "7\n"; else cout << string(N/2,'1') << "\n"; }