#include int main() { int x; scanf("%d",&x); while (x!=0) { printf("%d\n",x%10); x=x/10; } }