if __name__ == '__main__': N = int(input()) print("1" * int(N/2) if not N % 2 else "7" + "1" * (int(N/2)-1))