def main():
    N = int(input())
    numbers = '7'*(N%2) + '1'*(N//2 - N%2)
    
main()