Stepan has the newest electronic device with a display. Different digits can be shown on it. Each digit is shown on a seven-section indicator like it is shown on the picture below. [Image] 

So, for example, to show the digit 3 on the display, 5 sections must be highlighted; and for the digit 6, 6 sections must be highlighted. 

The battery of the newest device allows to highlight at most n sections on the display. 

Stepan wants to know the maximum possible integer number which can be shown on the display of his newest device. Your task is to determine this number. Note that this number must not contain leading zeros. Assume that the size of the display is enough to show any integer.


-----Input-----

The first line contains the integer n (2 ≤ n ≤ 100 000) — the maximum number of sections which can be highlighted on the display.


-----Output-----

Print the maximum integer which can be shown on the display of Stepan's newest device.


-----Examples-----
Input
2

Output
1

Input
3

Output
7

Difficulty: interview

Starter code:

Solutions:
n = int(input());
if (n % 2 != 0):
        s = '7';
        n -= 3;
else:
    s = '1';
    n-=2;
for i in range(n // 2): s = s + '1';
print(s);


sections=int(input())

ones = int(sections / 2)
printSeven = False
if (sections % 2 != 0):
    ones = ones - 1
    printSeven = True

if (printSeven):
    print('7', end='')

print('1' * ones)

n = int(input())
if n%2==1 :
    s='7'
    n=n-3
else:
    s='1'
    n=n-2
while n>0 :
    s=s+'1'
    n=n-2
print(s)


n = int(input())
if n % 2 != 0:
    print (7, end="")
    n -= 3

for i in range(int(n/2)):
    print (1, end="")


i = input()
if (int(i) % 2) == 0:
    while int(i) > 0:
        i = int(i) - 2
        print(1, end = '')
else:
    print(7, end = '')
    i = int(i) - 3
    while int(i) > 0:
        i = int(i) - 2
        print(1, end = '')

n = int(input())
if (n % 2 == 1):
  print('7', end = '')
  n -= 3
i = 0
while (i != n):
  print('1', end = '')
  i += 2
print()

n = int(input())
if (n%2!=0):
    print(7,end="")
    for i in range(1,int(n/2)):
        print(1,end = "")
else:
     for i in range(0,int(n/2)):
        print(1,end = "")



n = int(input())
ans = ''

if (n % 2 != 0):
    ans += '7'
    n-=3

while (n >= 2):
    ans += '1'
    n-=2

print(ans)

n = int(input())
s = ''
if (n % 2) == 0:
	for i in range(n // 2):
		s += '1'
else:
	s += '7'
	for i in range((n - 3) // 2):
		s += '1'
print(s)


from math import *
n=int(input())
if n % 2 != 0:
    n -= 3;
    print (7, end = "")
i = 0
while i < n:
    i += 2
    print (1, end = "")

import sys

n = int(sys.stdin.readline())
s = ""
if (n % 2 == 1):
    n -= 3
    s = "7"

for i in range(0, n , 2):
  s += "1"
print(s)

n = int(input())
if n % 2 == 0:
    print('1' * (n // 2))
else:
    print('7' + '1' * ((n - 3) // 2))

a = int(input())
if ( a % 2 ):
    print('7', end='')
    a -= 3
while (a > 0) :
    a -= 2
    print('1', end='')

n = int(input()); 

if n%2 == 1:
    print("7", end = "");
    n -= 3;
    
while n > 0:
    print("1", end = "");
    n -= 2;

n = int(input())
ans = ''
if n % 2 == 0:
	for i in range(n//2):
		ans += '1'
else:
	ans += '7'
	for i in range(n//2-1):
		ans += '1'
	
print(ans)

inpt = int(input())
ans = ""
if inpt & 1 == 1:
    inpt = inpt - 3
    ans = "7"
ans+= "1" * ( inpt >> 1)
print(ans)

n = int(input())
if (n % 2 == 1):
  print('7', end = '')
  n -= 3
i = 0
while (i != n):
  print('1', end = '')
  i += 2
print()

n = int(input())
if(n % 2 != 0):
    n -= 3
    print('7', end='')
while(n!=0):
    n -= 2
    print('1', end='')

n = int(input())

line = ''
if n % 2 == 0:
    one_num = int(n / 2)
    seven_num = 0
else:
    one_num = int(n / 2) - 1
    seven_num = 1

for i in range(seven_num):
    line += '7'

for i in range(one_num):
    line += '1'

print(line)


a=int(input())
sstring=[]
if a%2:
   sstring.append('7')
else:
   a=a
if a%2:
   a=a-3
else:
   a=a
for i in range (a // 2):
   sstring.append('1')
print(''.join(sstring))

n = 0 
one = 0 
seven = 0
i = 0 
j = 0
    
n = int(input())
if n % 2 == 0: 
    for i in range(1, n // 2 + 1):
        print('1', end="")
else:
    print('7', end="")
    n = n - 3
    while n > 1:
        print('1', end="")
        n = n - 2

n = int(input())
if n % 2 == 0:
    for i in range(n // 2):
        print(1, end='')
else:
    print(7, end='')
    for i in range(n // 2 - 1):
        print(1, end='')

n = int(input())
if n % 2 == 0:
    print('1' * (n // 2))
else:
    print(7, end='')
    if n > 3:
        print('1' * (n // 2 - 1))

def main():
    n = int(input())
    if n % 2 == 0:
        print('1' * (n // 2))
    else:
        print(7, end='')
        if n > 3:
            print('1' * (n // 2 - 1))
            
main()