import std.stdio, std.conv, std.math, std.string, std.range, std.array, std.algorithm; void main(){ auto N = readln().strip().to!int(); if(N%2) write(7); else write(1); foreach(int i; 0 .. N / 2 - 1) { write(1); } writeln(); }