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