#include void solve(int n) { int temp = n % 10; /*********Begin*********/ n /= 10; if (n > 0) solve(n); /*********End**********/ if (n) printf(" %d", temp); else printf("%d", temp); } int main(void) { //freopen("in.txt","r",stdin); int n; scanf("%d", &n); solve(n); return 0; }