public class No_83{ public static void main(String[] args){ java.util.Scanner sc = new java.util.Scanner(System.in); int match = sc.nextInt(); StringBuilder sb = new StringBuilder(""); for(int i = 0;i < match/2;i++){ sb.append('1'); } if(match%2 != 0){ sb.setCharAt(sb.length()-1,'7'); } System.out.println(sb); } }