package yukicoder; import java.util.Scanner; public class Yuki83{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); scan.close(); int two_num = 0; int three_num = 0; String ans = ""; if( num % 2 == 0){ two_num = num / 2; ans = strNumbers(two_num,three_num); } else if(num % 2 == 1){ two_num = (num / 2) -1; three_num ++; ans = strNumbers(two_num,three_num); } System.out.println(ans); } private static String strNumbers(int two_num,int three_num){ String ans = ""; if(three_num != 0) { for(int i =0; i < three_num; i++ ) { ans += "7"; } for(int i =0; i < two_num; i++ ) { ans += "1"; } } else { for(int i =0; i < two_num; i++ ) { ans += "1"; } for(int i =0; i < three_num; i++ ) { ans += "7"; } } return ans; } }