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