#!/usr/bin/env python

num = int(raw_input())
shou = num / 2
if num % 2 == 0:
        print("1" * shou)
else:
    print("7" + "1" * (shou-1) )