import strutils let n: int = stdin.readline.parseInt var ans: string = if n mod 2 == 0: "1" else: "7" for i in 1..<(n div 2): ans &= "1" echo ans