#include"stdio.h" #include<string.h> int main() { int n, m, i = 0; char a[10]; scanf("%d", &n); m = n; while (m) { a[i++] = m % 10 + '0'; m /= 10; } for (int j = 1; j <= i; j++) { for (int t = j - 1; t >= 0; t--) printf("%c", a[t]); printf("\n"); } return 0; }