N = int(input()) ones = N // 2 if N & 1: print('1' * (ones - 1) + '7') else: print('1' * ones)