import java.util.*; public class Exercise139{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = ""; if(n % 2 == 0){ for(int i = 0; i < n / 2; i++){ s += "1"; } }else{ s += "7"; for(int i = 0; i < n / 2 - 1; i++){ s += "1"; } } System.out.println(s); } }