package main import ( "fmt" ) func resolve(N int) int64 { if N < 2 { return 0 } var r int64 if N%2 == 1 { r = 7 } else { r = 1 } N -= 2 for { if N < 2 { break } r = r*10 + 1 N -= 2 } return r } func main() { var N int fmt.Scanf("%d\n", &N) fmt.Println(resolve(N)) }