N = int(input()) s = ['1'] * (N // 2) if N % 2: s[0] = '7' print(int(''.join(s)))