enum Type{ EVEN,ODD; } class Counter{ int match; Type type; StringBuilder ans; public Counter(int i){ this.match = i; if(match%2 == 0) this.type = Type.EVEN; else this.type = Type.ODD; ans = new StringBuilder(); } public void lineUpOne(){ for(int i = 0;i < this.match/2;i++){ this.ans.append('1'); } } public void changeTheHead(){ if(this.type.equals(Type.ODD)) this.ans.setCharAt(0,'7'); } } public class No_83_2{ public static void main(String[] args){ java.util.Scanner sc = new java.util.Scanner(System.in); Counter counter = new Counter(sc.nextInt()); counter.lineUpOne(); counter.changeTheHead(); System.out.println(counter.ans); } }