import std.stdio; void main() { int n; readf("%s\n", &n); writef(0 == n%2 ? "1" : "7"); foreach (_; 1..(n/2)) writef("1"); writeln; }