#include using namespace std; const vector dx_2d = {1,-1,0,0}; const vector dy_2d = {0,0,1,-1}; void Yyy(){ cout << "Yes" << endl; } void Nnn(){ cout << "No" << endl; } void YYY(){ cout << "YES" << endl; } void NNN(){ cout << "NO" << endl; } void fixprecision(){ cout << fixed << setprecision(20); } template bool chmin(T& a,T b){ if(a > b){ a = b; return true; } else return false; } template bool chmax(T& a,T b){ if(a < b){ a = b; return true; } else return false; } int main(){ int N; cin >> N; for(int i=9;i>9-N;i--){ for(int j=0;j