import java.util.Scanner; public class Main83 { public static void main(String[] args) { Main83 p = new Main83(); } public Main83() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); solve(n); } public void solve(int n) { StringBuilder sb = new StringBuilder(); if(n%2==0){ n-=2; sb.append('1'); }else{ n-=3; sb.append('7'); } for(int i=n;i>0;i-=2){ sb.append('1'); } System.out.println(sb.toString()); } }