import java.util.Scanner; class Yuki83 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = ""; int a = n/2; int b = n%2; int c = 0; if(b==1){ a-=1; c=1; } if(c==1){ s+='7'; } for(int i=0; i