﻿/* 
    Szám számjegyeinek meghatározása eredeti sorrendben
    
    Pl. 1235  ->  1 2 3 5
*/

#include <iostream>
using namespace std;

int main()
{
    int n;
    cin >> n;

    int p = 1;  // tízhatvány

    do {
       p = p * 10;
    } while (n / p != 0);

    p = p / 10;

    // cout << p << endl;

    while (p > 0) {
        int szj = (n / p) % 10;
        cout << szj << " ";

        p = p / 10;
    }

    cout << endl;
    return 0;
}
