#!/usr/bin/env python3 n = int(input()) if n % 2 == 0: s = '1' * (n//2) else: s = '7' + '1' * (n//2 - 1) print(s)