num = int(input())
ans = ['7'+'1'*(num//2-1), '1'*(num//2)][num%2==0]
print(ans)