import java.util.Scanner; public class No83 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int N = sc.nextInt(); if(N % 2 == 1) { sb.append(7); N -= 3; } for(int i = 1;i <= N/2;i++) { sb.append(1); } System.out.println(sb); } }