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