#include void haha(int a){if(a/10 ==0){printf("%d ",a%10);}else{haha(a/10);printf("%d ",a%10);}}int main(void){long int a;scanf("%ld",&a);haha(a);printf("\n");}