#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string ans = ""; if(n == 2) { cout << 1 << endl; return 0; } while(n > 1){ if(n == 3){ n -= 3; ans += '7'; reverse(ans.begin(), ans.end()); } else{ n -= 2; ans += '1'; } } cout << ans << endl; return 0; }