#coding: UTF-8

import sys
import re
import itertools
from math import sqrt
from collections import deque

### defs ###


### main ###
N = int(sys.stdin.readline())
if (N%2==0):
	for _ in range(N//2):
		print(1,end='')
	print('')
else:
	print(7,end='')
	for _ in range(N//2 - 1):
		print(1,end='')
	print('')