package main

import (
	"fmt"
)

func main() {
	var N int
	fmt.Scan(&N)
	n1 := N/2
	ans := make([]int, n1)
//	fmt.Println(n1)
	for i:=0;i<n1;i++{
		ans[i] = 1
	}
	if N%2==1{
		ans[0] = 7
	}
//	fmt.Println(ans)
	for i:=0; i<n1; i++{
		fmt.Print(ans[i])
	}
}