#include using namespace std; typedef long long ll; typedef pair l_l; typedef pair i_i; template inline bool chmax(T &a, T b) { if(a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, T b) { if(a > b) { a = b; return true; } return false; } #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; int main() { //cout.precision(10); cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; if(N == 1) { cout << 1 << endl; return 0; } for(int i = N - 1; i >= 0; i--) { for(int j = 0; j < N; j++) cout << i; } cout << endl; return 0; }