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