if __name__ == '__main__': N = int(input()) answer = "1" * int(N/2) if N % 2: answer = "7" + answer[1:] print(answer)