i = int(input()) numbers = [] if i % 2: numbers.append('7') i -= 3 while i >= 2: numbers.append('1') i -= 2 print(''.join(numbers))