import sys def input(): return sys.stdin.readline().rstrip() def main(): N = int(input()) print('1'*(N//2) if N % 2 == 0 else '7'+'1'*((N-3)//2)) if __name__ == '__main__': main()