#include <iostream> #include <string> using namespace std; int main() { int m,n; cin>>m>>n; string result; int N=n; for(int i=0; i<N-1; i++) { if(m-2*(n-1)>=6) { result[i]='9'; m=m-6; n=n-1; } else { if(m-2*(n-1)>=3) { result[i]='7'; m=m-3; n=n-1; } else { if(m-2*(...