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