#include using namespace std; int main() { int n,count; cin >> n; while(1) { if(cin.eof()) { return 0; } count = 0; for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) { cout << count; count++; if(count == 10) { count = 0; } } cout << endl; } cin >> n; if(cin.eof()) { return 0; } cout << endl; } }