def main():
    N = int(input())

    if not N % 2:
        ans = '1' * (N // 2)
    else:
        ans = '7' + '1' * ((N // 2) - 1)

    print(ans)

main()