# -*- coding: utf-8 -*- N = input() if N % 2 == 1: print "7" + "1" *((N-2) // 2) else: print "1" * (N // 2)