#include #include using namespace std; int main(){ int N; cin >> N; string ans; if(N >= 3){ if(N % 2 != 0){ ans += "7"; N = N-3; } for(int i = 0;i < N/2;i++){ ans += "1"; } cout << ans << endl; } else{ cout << "1" << endl; } return 0; }