#include int main(int argc, char *argv[]) { unsigned int N_match_num = 3; unsigned int i; // scanf("%d", &N_match_num); for (i = 0; N_match_num != 0; i++) { if ( ( i == 0 ) && ( N_match_num % 2 != 0 ) ) { printf("7"); } if ( N_match_num == 3 ) { break; } if (N_match_num == 1) { break; } N_match_num -= 2; printf("1"); } return 0; }