import sequtils, strutils, algorithm, math var n = readLine(stdin).parseInt proc main():int = if n == 3: return 7 elif n == 5: return 71 elif n mod 2 == 0: return parseInt("1".repeat(n div 2)) else: return parseInt("7" & "1".repeat((n div 2) - 1)) echo main()