#include <iostream> #include <vector> #include <string> #include <utility> #include <algorithm> #include <climits> #include <map> #include <queue> using namespace std; using int64 = long long; int main() { int n; cin >> n; string ans(n/2,'1'); if (n%2) ans.back() += 6; reverse(ans.begin(), ans.end()); cout << ans << endl; }