num = int(input())

if num % 2 == 0:
    ones_num = num // 2
    print(int('1' * ones_num))

else:
    ones_num = num // 2
    print(int('7' + '1' * (ones_num - 1)))