#include <stdio.h> int main() { int N; scanf("%d", &N); while (N > 0) { int digit = N % 10; printf("%d ", digit); N = N / 10; } return 0; }