#include<stdio.h> void getW(int x){ while(x != 0){ int d = x %10; printf("%d ",d); x /= 10; } printf("\n"); } int main(){ int n; while(true){ scanf("%d",&n); getW(n); } return 0; }