N = int(input()) ans = "1"*((N//2)-1) if N%2 ==1: print("7"+ans) else: print("1"+ans)