total_num = int(input()) # 3項演算子変形 print(total_num % 2 == 0 and '1' * (total_num // 2) or '7' + '1' * ((total_num - 3) // 2))