#include using namespace std; int main(){ int n, d; cin >> n; for(int i=0; i> d; cout << 9; for(int i=0; i