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