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