package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func nextInt(sc *bufio.Scanner) int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func printN(v, n int) {
	for i := 0; i < n; i++ {
		fmt.Print(v)
	}
}

func main() {
	sc := bufio.NewScanner(os.Stdin)
	n := nextInt(sc)
	count1 := n / 2
	if n%2 == 1 {
		fmt.Print(7)
		printN(1, count1-1)
	} else {
		printN(1, count1)
	}
	fmt.Println()
}