#include using namespace std; #define ll long long #define ul unsigned long long #define pb push_back #define ss second #define ff first #define fr(m) for(int i=0; i=0; i--) #define nl '\n' #define yes cout<<"YES"<>n; string s; if(n%2) { s.push_back('7'); int m=n/2-1; fr(m) s.push_back('1'); } else { int m=n/2; fr(m) s.push_back('1'); } cout<> TC; while (TC--) solve(); }