package main import ( "bufio" "fmt" "io" "os" ) func solve(in io.Reader, out, err io.Writer) { num := 0 fmt.Fscan(in, &num) temp := num / 2 if temp*2 == num { fmt.Fprint(out, 1) } else { fmt.Fprint(out, 7) } for i := 1; i < temp; i++ { fmt.Fprint(out, 1) } fmt.Fprintln(out, "") } func main() { br := bufio.NewReaderSize(os.Stdin, int(1e6)) solve(br, os.Stdout, os.Stderr) }