func_code_string: #include <bits/stdc++.h>   using namespace std;   int n;   int b[3100];   int a[3100];   int main() {     scanf( %d , &n);     for (int i = 1; i <= n; ++i) {       scanf( %d , &b[i]);       int bb = b[i] - b[i - 1], l;       if (bb > 0) {       youginzi:         l = 1;         while (bb) {           while (a[l] == 9) l++;           a[l]++;           --bb;         }       } else if (bb < 0) {         while (bb) {           if (bb > 0) goto youginzi;           l = 0;           while (a[++l] == 0)             ;           do {             bb += a[l] - 1;             a[l] = 0;             ++a[++l];           } while (a[l] >= 10);         }       } else {         l = 0;         while (a[++l] == 0)           ;         do {           bb += a[l] - 1;           a[l] = 0;           ++a[++l];         } while (a[l] >= 10);         goto youginzi;       }       int len = 3005;       while (a[len] == 0) --len;       for (int j = len; j >= 1; --j) printf( %d , a[j]);       puts(  );     }     return 0;   }   