import strutils, sequtils, algorithm, math var n = readLine(stdin).parseInt() if n mod 2 == 1: echo(7, repeatChar(n div 2 - 1, '1')) else: echo(repeatChar(n div 2, '1'))