#include using namespace std; int main(){ int N; scanf("%d",&N); if(N&1){ for(int i=0;i<(N-3)/2;i++)printf("1"); printf("7\n"); } else{ for(int i=0;i