#!/usr/bin/python # -*- coding: utf-8 -*- N = int(raw_input()) if N % 2 == 1: print "7" + "1" * (( N / 2 ) - 1 ) else: print "1" * ( N / 2)