# /usr/bin/env python # -*- coding: utf-8 -*- num = int(input()) if num % 2 == 0: print("1"*int(n/2)) else: print("7" + int((n-1)/2))