n=int(input()) if n%2==0: s='1'*(n//2) print(int(s)) else: s='7'+'1'*(n//2-1) print(int(s))