import sequtils,strutils proc `*`(str:string,t:int):string = (result = "";for i in 0..<t:(result &= str)) let N = stdin.readLine().strip().parseInt() echo((if N mod 2 == 0 : "1" else: "7") & "1"* ((N-2) div 2))